Update app.py
Browse files
app.py
CHANGED
|
@@ -7,11 +7,11 @@ from app_dev_desc import app_dev_desc
|
|
| 7 |
from logger import log_response
|
| 8 |
from logger import log_enabled
|
| 9 |
from app_chat import app_chat
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
|
| 16 |
|
| 17 |
# Declare global variable
|
|
@@ -34,9 +34,9 @@ with tabs[0]:
|
|
| 34 |
st.markdown("Stat to chat. e.g. Generate an image of a boat. This will make the agent use the tool text2image to generate an image.")
|
| 35 |
|
| 36 |
# Tab 2: URL and Tools
|
| 37 |
-
|
| 38 |
#
|
| 39 |
-
|
| 40 |
|
| 41 |
# Tab 3: User Description
|
| 42 |
#with tabs[2]:
|
|
@@ -48,4 +48,4 @@ app_agent_config()
|
|
| 48 |
# app_dev_desc()
|
| 49 |
|
| 50 |
#app_chat()
|
| 51 |
-
app_chat(
|
|
|
|
| 7 |
from logger import log_response
|
| 8 |
from logger import log_enabled
|
| 9 |
from app_chat import app_chat
|
| 10 |
+
|
| 11 |
+
from app_agent_config import AgentConfig
|
| 12 |
+
|
| 13 |
+
# Create an instance of AgentConfig
|
| 14 |
+
agent_config = AgentConfig()
|
| 15 |
|
| 16 |
|
| 17 |
# Declare global variable
|
|
|
|
| 34 |
st.markdown("Stat to chat. e.g. Generate an image of a boat. This will make the agent use the tool text2image to generate an image.")
|
| 35 |
|
| 36 |
# Tab 2: URL and Tools
|
| 37 |
+
with tabs[1]:
|
| 38 |
#
|
| 39 |
+
agent_config.configure()
|
| 40 |
|
| 41 |
# Tab 3: User Description
|
| 42 |
#with tabs[2]:
|
|
|
|
| 48 |
# app_dev_desc()
|
| 49 |
|
| 50 |
#app_chat()
|
| 51 |
+
app_chat(agent_config)
|