Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ class GaiaAgent:
|
|
87 |
return "ERROR: Agent failed to answer." # Return a string, not an exception
|
88 |
|
89 |
|
90 |
-
def run_and_submit_all(profile: gr.OAuthProfile | None, openai_key: str):
|
91 |
# --- Login & Setup ---
|
92 |
if not profile:
|
93 |
return "Please log in to Hugging Face to submit your score.", None
|
@@ -150,6 +150,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None, openai_key: str): # Chan
|
|
150 |
return status, pd.DataFrame(log)
|
151 |
|
152 |
|
|
|
153 |
# --- Gradio UI ---
|
154 |
def run_test_questions(profile, openai_key, test_questions):
|
155 |
if not profile:
|
@@ -205,4 +206,3 @@ with gr.Blocks() as demo: # Corrected to use gr.Blocks()
|
|
205 |
|
206 |
if __name__ == "__main__":
|
207 |
demo.launch(debug=True, share=False)
|
208 |
-
|
|
|
87 |
return "ERROR: Agent failed to answer." # Return a string, not an exception
|
88 |
|
89 |
|
90 |
+
def run_and_submit_all(profile: gr.OAuthProfile | None, openai_key: str):
|
91 |
# --- Login & Setup ---
|
92 |
if not profile:
|
93 |
return "Please log in to Hugging Face to submit your score.", None
|
|
|
150 |
return status, pd.DataFrame(log)
|
151 |
|
152 |
|
153 |
+
|
154 |
# --- Gradio UI ---
|
155 |
def run_test_questions(profile, openai_key, test_questions):
|
156 |
if not profile:
|
|
|
206 |
|
207 |
if __name__ == "__main__":
|
208 |
demo.launch(debug=True, share=False)
|
|