tatianija commited on
Commit
440630e
·
verified ·
1 Parent(s): d092297

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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.", None
318
 
319
  if not cached_questions:
320
- return "No questions available. Please fetch questions first.", None
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 below.", None
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
  """