minor fixes
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def run_random_question(profile: gr.OAuthProfile | None):
|
|
| 31 |
return "Please Login to Hugging Face with the button.", None
|
| 32 |
|
| 33 |
api_url = DEFAULT_API_URL
|
| 34 |
-
random_question_url = f"{api_url}
|
| 35 |
|
| 36 |
try:
|
| 37 |
agent = BasicAgent()
|
|
@@ -42,7 +42,7 @@ def run_random_question(profile: gr.OAuthProfile | None):
|
|
| 42 |
agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
|
| 43 |
print(agent_code)
|
| 44 |
|
| 45 |
-
print(f"Fetching
|
| 46 |
try:
|
| 47 |
response = requests.get(random_question_url, timeout=15)
|
| 48 |
response.raise_for_status()
|
|
|
|
| 31 |
return "Please Login to Hugging Face with the button.", None
|
| 32 |
|
| 33 |
api_url = DEFAULT_API_URL
|
| 34 |
+
random_question_url = f"{api_url}/random-question"
|
| 35 |
|
| 36 |
try:
|
| 37 |
agent = BasicAgent()
|
|
|
|
| 42 |
agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
|
| 43 |
print(agent_code)
|
| 44 |
|
| 45 |
+
print(f"Fetching question from: {random_question_url}")
|
| 46 |
try:
|
| 47 |
response = requests.get(random_question_url, timeout=15)
|
| 48 |
response.raise_for_status()
|