Spaces:
Sleeping
Sleeping
Fix ClamAV false positive??
Browse files
app.py
CHANGED
|
@@ -241,35 +241,6 @@ with gr.Blocks() as demo:
|
|
| 241 |
run_button.click(fn=run_and_submit_all, outputs=[status_output, results_table])
|
| 242 |
|
| 243 |
|
| 244 |
-
# async def main():
|
| 245 |
-
# agent = BasicAgent()
|
| 246 |
-
# api_url = DEFAULT_API_URL
|
| 247 |
-
# questions_url = f"{api_url}/questions"
|
| 248 |
-
# print(f"Fetching questions from: {questions_url}")
|
| 249 |
-
|
| 250 |
-
# response = requests.get(questions_url, timeout=15)
|
| 251 |
-
# response.raise_for_status()
|
| 252 |
-
# questions_data = response.json()
|
| 253 |
-
|
| 254 |
-
# # 3. Run your Agent
|
| 255 |
-
# results_log = []
|
| 256 |
-
# answers_payload = []
|
| 257 |
-
# print(f"Running agent on {len(questions_data)} questions...")
|
| 258 |
-
# item = questions_data[0]
|
| 259 |
-
# task_id = item.get("task_id")
|
| 260 |
-
# question_text = item.get("question")
|
| 261 |
-
# file_name = item.get("file_name")
|
| 262 |
-
# submitted_answer = await agent(question_text, task_id, file_name)
|
| 263 |
-
# answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
| 264 |
-
# results_log.append(
|
| 265 |
-
# {
|
| 266 |
-
# "Task ID": task_id,
|
| 267 |
-
# "Question": question_text,
|
| 268 |
-
# "Submitted Answer": submitted_answer,
|
| 269 |
-
# }
|
| 270 |
-
# )
|
| 271 |
-
|
| 272 |
-
|
| 273 |
if __name__ == "__main__":
|
| 274 |
print("\n" + "-" * 30 + " App Starting " + "-" * 30)
|
| 275 |
# Check for SPACE_HOST and SPACE_ID at startup for information
|
|
@@ -297,5 +268,3 @@ if __name__ == "__main__":
|
|
| 297 |
|
| 298 |
print("Launching Gradio Interface for Basic Agent Evaluation...")
|
| 299 |
demo.launch(debug=True, share=False)
|
| 300 |
-
|
| 301 |
-
# asyncio.run(main())
|
|
|
|
| 241 |
run_button.click(fn=run_and_submit_all, outputs=[status_output, results_table])
|
| 242 |
|
| 243 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 244 |
if __name__ == "__main__":
|
| 245 |
print("\n" + "-" * 30 + " App Starting " + "-" * 30)
|
| 246 |
# Check for SPACE_HOST and SPACE_ID at startup for information
|
|
|
|
| 268 |
|
| 269 |
print("Launching Gradio Interface for Basic Agent Evaluation...")
|
| 270 |
demo.launch(debug=True, share=False)
|
|
|
|
|
|