DMMP commited on
Commit
d0a29d6
·
verified ·
1 Parent(s): 3650036

updated agent scope

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -290,7 +290,7 @@ class Agent:
290
 
291
  ## gradio functions
292
  def respond(message: str, history : dict, web_search: bool = False):
293
-
294
  # input
295
  print("history:", history)
296
  text = message.get("text", "")
@@ -342,7 +342,7 @@ For more information: [README.md](https://huggingface.co/spaces/Lab9705/MultiAge
342
  **Important**: if you’re interested in trying the sound generation feature, please open a discussion to request that we restart our custom space. We have limited credits, so we appreciate your understanding 🤓
343
  """)
344
 
345
- global agent
346
  agent = initialize_agent()
347
  demo = gr.ChatInterface(
348
  fn=respond,
 
290
 
291
  ## gradio functions
292
  def respond(message: str, history : dict, web_search: bool = False):
293
+ global agent
294
  # input
295
  print("history:", history)
296
  text = message.get("text", "")
 
342
  **Important**: if you’re interested in trying the sound generation feature, please open a discussion to request that we restart our custom space. We have limited credits, so we appreciate your understanding 🤓
343
  """)
344
 
345
+ # global agent
346
  agent = initialize_agent()
347
  demo = gr.ChatInterface(
348
  fn=respond,