Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,10 +28,6 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 28 |
print("User not logged in.")
|
| 29 |
return "Please Login to Hugging Face with the button.", None
|
| 30 |
|
| 31 |
-
api_url = DEFAULT_API_URL
|
| 32 |
-
questions_url = f"{api_url}/questions"
|
| 33 |
-
submit_url = f"{api_url}/submit"
|
| 34 |
-
|
| 35 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 36 |
try:
|
| 37 |
agent = BasicAgent()
|
|
@@ -58,7 +54,6 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 58 |
# 3. Run your Agent
|
| 59 |
results_log = []
|
| 60 |
answers_payload = []
|
| 61 |
-
print(f"Running agent on {len(questions_data)} questions...")
|
| 62 |
files_base = os.path.join(data_dir, "2023", "test")
|
| 63 |
subset = dataset.select(range(20))
|
| 64 |
for item in subset:
|
|
|
|
| 28 |
print("User not logged in.")
|
| 29 |
return "Please Login to Hugging Face with the button.", None
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 32 |
try:
|
| 33 |
agent = BasicAgent()
|
|
|
|
| 54 |
# 3. Run your Agent
|
| 55 |
results_log = []
|
| 56 |
answers_payload = []
|
|
|
|
| 57 |
files_base = os.path.join(data_dir, "2023", "test")
|
| 58 |
subset = dataset.select(range(20))
|
| 59 |
for item in subset:
|