Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,13 +3,18 @@ import gradio as gr
|
|
3 |
import requests
|
4 |
import pandas as pd
|
5 |
from dotenv import load_dotenv
|
6 |
-
|
7 |
from myagent import BasicAgent
|
8 |
#from multiagents import MultiAgent# Unused basic single agent
|
9 |
-
|
10 |
from phoenix.otel import register
|
11 |
from openinference.instrumentation.smolagents import SmolagentsInstrumentor
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
# use space_host var to determine if running in HF space or locally, if so register local instrumentation
|
14 |
space_host_startup = os.getenv("SPACE_HOST")
|
15 |
if not space_host_startup:
|
@@ -45,7 +50,7 @@ def run_and_submit_all(nb_questions: int, profile: gr.OAuthProfile | None):
|
|
45 |
|
46 |
# 1. Instantiate Agent
|
47 |
try:
|
48 |
-
agent =
|
49 |
#agent = MultiAgent()
|
50 |
except Exception as e:
|
51 |
print(f"Error instantiating agent: {e}")
|
|
|
3 |
import requests
|
4 |
import pandas as pd
|
5 |
from dotenv import load_dotenv
|
|
|
6 |
from myagent import BasicAgent
|
7 |
#from multiagents import MultiAgent# Unused basic single agent
|
|
|
8 |
from phoenix.otel import register
|
9 |
from openinference.instrumentation.smolagents import SmolagentsInstrumentor
|
10 |
|
11 |
+
from groq_api import GrokApi
|
12 |
+
|
13 |
+
My_Agent = GrokApi
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
|
18 |
# use space_host var to determine if running in HF space or locally, if so register local instrumentation
|
19 |
space_host_startup = os.getenv("SPACE_HOST")
|
20 |
if not space_host_startup:
|
|
|
50 |
|
51 |
# 1. Instantiate Agent
|
52 |
try:
|
53 |
+
agent = My_Agent()
|
54 |
#agent = MultiAgent()
|
55 |
except Exception as e:
|
56 |
print(f"Error instantiating agent: {e}")
|