Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,11 @@ import re
|
|
| 5 |
import json
|
| 6 |
import requests
|
| 7 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
from google.oauth2.credentials import Credentials
|
| 9 |
from googleapiclient.discovery import build
|
| 10 |
from agentpro import create_model, ReactAgent
|
|
@@ -277,4 +282,4 @@ with gr.Blocks() as demo:
|
|
| 277 |
# send_btn = gr.Button("✉️ Send")
|
| 278 |
# send_btn.click(fn=chat_with_agent, inputs=chat_input, outputs=chat_output)
|
| 279 |
|
| 280 |
-
demo.launch()
|
|
|
|
| 5 |
import json
|
| 6 |
import requests
|
| 7 |
import gradio as gr
|
| 8 |
+
import sys
|
| 9 |
+
|
| 10 |
+
# Remove yfinance_tool from agentpro.tools before AgentPro loads it
|
| 11 |
+
sys.modules['agentpro.tools.yfinance_tool'] = None
|
| 12 |
+
|
| 13 |
from google.oauth2.credentials import Credentials
|
| 14 |
from googleapiclient.discovery import build
|
| 15 |
from agentpro import create_model, ReactAgent
|
|
|
|
| 282 |
# send_btn = gr.Button("✉️ Send")
|
| 283 |
# send_btn.click(fn=chat_with_agent, inputs=chat_input, outputs=chat_output)
|
| 284 |
|
| 285 |
+
demo.launch()
|