Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ from llama_index.agent.openai import OpenAIAssistantAgent
|
|
| 12 |
|
| 13 |
|
| 14 |
# --- Basic Agent Definition ---
|
| 15 |
-
# -----
|
| 16 |
class OpenAIAgent:
|
| 17 |
def __init__(self):
|
| 18 |
print("BasicAgent initialized.")
|
|
@@ -66,6 +66,13 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 66 |
agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
|
| 67 |
print(agent_code)
|
| 68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
# 2. Fetch Questions
|
| 70 |
print(f"Fetching questions from: {questions_url}")
|
| 71 |
try:
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
# --- Basic Agent Definition ---
|
| 15 |
+
# ----- OpenAIAgent ------
|
| 16 |
class OpenAIAgent:
|
| 17 |
def __init__(self):
|
| 18 |
print("BasicAgent initialized.")
|
|
|
|
| 66 |
agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
|
| 67 |
print(agent_code)
|
| 68 |
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
|
| 76 |
# 2. Fetch Questions
|
| 77 |
print(f"Fetching questions from: {questions_url}")
|
| 78 |
try:
|