Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,7 @@ import pandas as pd
|
|
| 5 |
from huggingface_hub import login
|
| 6 |
import re
|
| 7 |
from groq import Groq
|
|
|
|
| 8 |
|
| 9 |
# --- Constants ---
|
| 10 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
@@ -169,6 +170,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 169 |
except Exception as e:
|
| 170 |
return f"Submission Failed: {e}", pd.DataFrame(results_log)
|
| 171 |
|
|
|
|
| 172 |
|
| 173 |
# --- Build Gradio Interface ---
|
| 174 |
with gr.Blocks() as demo:
|
|
|
|
| 5 |
from huggingface_hub import login
|
| 6 |
import re
|
| 7 |
from groq import Groq
|
| 8 |
+
from your_scorer_module import question_scorer
|
| 9 |
|
| 10 |
# --- Constants ---
|
| 11 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
|
|
| 170 |
except Exception as e:
|
| 171 |
return f"Submission Failed: {e}", pd.DataFrame(results_log)
|
| 172 |
|
| 173 |
+
print(question_scorer("FINAL ANSWER: right", "right")) # Should print True
|
| 174 |
|
| 175 |
# --- Build Gradio Interface ---
|
| 176 |
with gr.Blocks() as demo:
|