Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
import requests
|
|
|
4 |
import pandas as pd
|
5 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
|
6 |
# Test comment
|
@@ -65,6 +66,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
65 |
print("Fetched questions list is empty.")
|
66 |
return "Fetched questions list is empty or invalid format.", None
|
67 |
print(f"Fetched {len(questions_data)} questions.")
|
|
|
68 |
except requests.exceptions.RequestException as e:
|
69 |
print(f"Error fetching questions: {e}")
|
70 |
return f"Error fetching questions: {e}", None
|
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
import requests
|
4 |
+
import time
|
5 |
import pandas as pd
|
6 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
|
7 |
# Test comment
|
|
|
66 |
print("Fetched questions list is empty.")
|
67 |
return "Fetched questions list is empty or invalid format.", None
|
68 |
print(f"Fetched {len(questions_data)} questions.")
|
69 |
+
time.sleep(2)
|
70 |
except requests.exceptions.RequestException as e:
|
71 |
print(f"Error fetching questions: {e}")
|
72 |
return f"Error fetching questions: {e}", None
|