Spaces:
Sleeping
Sleeping
Nienke Dekkema commited on
Commit ·
e8cba91
1
Parent(s): 10f0cc5
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import gradio as gr
|
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
-
from smolagents import CodeAgent, UserInputTool, WebSearchTool, InferenceClientModel, PythonInterpreterTool, PythonExecutor,
|
| 7 |
from dotenv import load_dotenv
|
| 8 |
|
| 9 |
# (Keep Constants as is)
|
|
@@ -39,7 +39,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 39 |
agent = CodeAgent(
|
| 40 |
tools=[
|
| 41 |
# WebSearchTool(),
|
| 42 |
-
VisitWebpageTool(),
|
| 43 |
DuckDuckGoSearchTool(),
|
| 44 |
# GoogleSearchTool(),
|
| 45 |
FinalAnswerTool(),
|
|
@@ -205,4 +205,4 @@ if __name__ == "__main__":
|
|
| 205 |
print("-"*(60 + len(" App Starting ")) + "\n")
|
| 206 |
|
| 207 |
print("Launching Gradio Interface for Basic Agent Evaluation...")
|
| 208 |
-
demo.launch(debug=False, share=
|
|
|
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
+
from smolagents import CodeAgent, UserInputTool, WebSearchTool, InferenceClientModel, PythonInterpreterTool, PythonExecutor, FinalAnswerTool, Tool, tool, LiteLLMModel, DuckDuckGoSearchTool
|
| 7 |
from dotenv import load_dotenv
|
| 8 |
|
| 9 |
# (Keep Constants as is)
|
|
|
|
| 39 |
agent = CodeAgent(
|
| 40 |
tools=[
|
| 41 |
# WebSearchTool(),
|
| 42 |
+
# VisitWebpageTool(),
|
| 43 |
DuckDuckGoSearchTool(),
|
| 44 |
# GoogleSearchTool(),
|
| 45 |
FinalAnswerTool(),
|
|
|
|
| 205 |
print("-"*(60 + len(" App Starting ")) + "\n")
|
| 206 |
|
| 207 |
print("Launching Gradio Interface for Basic Agent Evaluation...")
|
| 208 |
+
demo.launch(debug=False, share=False, ssr_mode=False)
|