Spaces:
Sleeping
Sleeping
app
Browse files
app.py
CHANGED
|
@@ -139,7 +139,7 @@ def upload_to_hf():
|
|
| 139 |
|
| 140 |
|
| 141 |
@rt("/")
|
| 142 |
-
|
| 143 |
stats = get_stats()
|
| 144 |
example = get_example(question_type)
|
| 145 |
|
|
@@ -196,7 +196,7 @@ async def get(question_type: str = None):
|
|
| 196 |
|
| 197 |
|
| 198 |
@rt("/stats")
|
| 199 |
-
|
| 200 |
stats = get_stats()
|
| 201 |
stats = render_stats(stats)
|
| 202 |
|
|
@@ -211,7 +211,7 @@ async def get():
|
|
| 211 |
|
| 212 |
|
| 213 |
@rt("/evaluate")
|
| 214 |
-
|
| 215 |
example_id = int(example_id)
|
| 216 |
example_dict = fact_dataset[example_id]
|
| 217 |
|
|
|
|
| 139 |
|
| 140 |
|
| 141 |
@rt("/")
|
| 142 |
+
def get(question_type: str = None):
|
| 143 |
stats = get_stats()
|
| 144 |
example = get_example(question_type)
|
| 145 |
|
|
|
|
| 196 |
|
| 197 |
|
| 198 |
@rt("/stats")
|
| 199 |
+
def get():
|
| 200 |
stats = get_stats()
|
| 201 |
stats = render_stats(stats)
|
| 202 |
|
|
|
|
| 211 |
|
| 212 |
|
| 213 |
@rt("/evaluate")
|
| 214 |
+
def post(decision: str, example_id: str):
|
| 215 |
example_id = int(example_id)
|
| 216 |
example_dict = fact_dataset[example_id]
|
| 217 |
|