Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- app.py +10 -0
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -3,9 +3,19 @@ import gradio as gr
|
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
|
|
|
| 6 |
|
| 7 |
from agent import GaiaAgent, DEFAULT_API_URL
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
| 10 |
"""
|
| 11 |
Fetches all questions, runs the GaiaAgent on them, submits all answers,
|
|
|
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
+
import spaces
|
| 7 |
|
| 8 |
from agent import GaiaAgent, DEFAULT_API_URL
|
| 9 |
|
| 10 |
+
|
| 11 |
+
@spaces.GPU
|
| 12 |
+
def _zerogpu_probe():
|
| 13 |
+
"""Unused - satisfies this Space's ZeroGPU hardware requirement for a @spaces.GPU
|
| 14 |
+
function to exist at startup. The agent itself only calls the HF Inference API and
|
| 15 |
+
never needs a local GPU, so this is never invoked."""
|
| 16 |
+
return True
|
| 17 |
+
|
| 18 |
+
|
| 19 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
| 20 |
"""
|
| 21 |
Fetches all questions, runs the GaiaAgent on them, submits all answers,
|
requirements.txt
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
gradio
|
| 2 |
itsdangerous
|
| 3 |
requests
|
|
|
|
| 4 |
pandas
|
| 5 |
langgraph
|
| 6 |
langchain-core
|
|
|
|
| 1 |
gradio
|
| 2 |
itsdangerous
|
| 3 |
requests
|
| 4 |
+
spaces
|
| 5 |
pandas
|
| 6 |
langgraph
|
| 7 |
langchain-core
|