Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -139,6 +139,7 @@ def count_answers_per_space(country: str):
|
|
139 |
"answered_questions": answered_questions,
|
140 |
"total_answers": total_answers,
|
141 |
"percent": round(percentage_complete, 2),
|
|
|
142 |
}
|
143 |
|
144 |
except Exception as e:
|
@@ -150,6 +151,7 @@ def count_answers_per_space(country: str):
|
|
150 |
"answered_questions": 0,
|
151 |
"total_answers": 0,
|
152 |
"percent": 0,
|
|
|
153 |
}
|
154 |
|
155 |
# Create a FastAPI app
|
|
|
139 |
"answered_questions": answered_questions,
|
140 |
"total_answers": total_answers,
|
141 |
"percent": round(percentage_complete, 2),
|
142 |
+
"documents": total_answers * 10
|
143 |
}
|
144 |
|
145 |
except Exception as e:
|
|
|
151 |
"answered_questions": 0,
|
152 |
"total_answers": 0,
|
153 |
"percent": 0,
|
154 |
+
"documents": 0
|
155 |
}
|
156 |
|
157 |
# Create a FastAPI app
|