Spaces:
Runtime error
Runtime error
updated agent scope
Browse files
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,
|