Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -314,10 +314,10 @@ def start_answer_generation(model_choice: str):
|
|
| 314 |
Start the answer generation process in a separate thread.
|
| 315 |
"""
|
| 316 |
if processing_status["is_processing"]:
|
| 317 |
-
return "Answer generation is already in progress."
|
| 318 |
|
| 319 |
if not cached_questions:
|
| 320 |
-
return "No questions available. Please fetch questions first."
|
| 321 |
|
| 322 |
# Map model choice to actual model name
|
| 323 |
model_map = {
|
|
@@ -332,7 +332,7 @@ def start_answer_generation(model_choice: str):
|
|
| 332 |
thread.daemon = True
|
| 333 |
thread.start()
|
| 334 |
|
| 335 |
-
return f"Answer generation started using {model_choice}. Check progress
|
| 336 |
|
| 337 |
def get_generation_progress():
|
| 338 |
"""
|
|
|
|
| 314 |
Start the answer generation process in a separate thread.
|
| 315 |
"""
|
| 316 |
if processing_status["is_processing"]:
|
| 317 |
+
return "Answer generation is already in progress."
|
| 318 |
|
| 319 |
if not cached_questions:
|
| 320 |
+
return "No questions available. Please fetch questions first."
|
| 321 |
|
| 322 |
# Map model choice to actual model name
|
| 323 |
model_map = {
|
|
|
|
| 332 |
thread.daemon = True
|
| 333 |
thread.start()
|
| 334 |
|
| 335 |
+
return f"Answer generation started using {model_choice}. Check progress."
|
| 336 |
|
| 337 |
def get_generation_progress():
|
| 338 |
"""
|