Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
import requests
|
4 |
-
import inspect
|
5 |
import pandas as pd
|
6 |
from agent import EnhancedAgent # Importa el EnhancedAgent
|
7 |
-
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
|
8 |
|
9 |
# --- Basic Agent Definition ---
|
10 |
class BasicAgent:
|
@@ -31,7 +30,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
31 |
and displays the results.
|
32 |
"""
|
33 |
# --- Determine HF Space Runtime URL and Repo URL ---
|
34 |
-
space_id = os.getenv("SPACE_ID")
|
35 |
|
36 |
if profile:
|
37 |
username = f"jujovele"
|
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
import requests
|
|
|
4 |
import pandas as pd
|
5 |
from agent import EnhancedAgent # Importa el EnhancedAgent
|
6 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel # Aquí puedes quitar 'smolagent_tools' si no lo usas
|
7 |
|
8 |
# --- Basic Agent Definition ---
|
9 |
class BasicAgent:
|
|
|
30 |
and displays the results.
|
31 |
"""
|
32 |
# --- Determine HF Space Runtime URL and Repo URL ---
|
33 |
+
space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
|
34 |
|
35 |
if profile:
|
36 |
username = f"jujovele"
|