Chris4K commited on
Commit
365d369
·
verified ·
1 Parent(s): 62fc389

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
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
- #from transformers import load_tool, Agent
12
- tool_checkboxes = []
13
- url_endpoint = ""
14
- log_enabled = False
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
- #with tabs[1]:
38
  #
39
- app_agent_config()
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(tool_checkboxes, url_endpoint, log_enabled)
 
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)