gorkemgoknar commited on
Commit
a2d0bed
1 Parent(s): a5e49f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -271,7 +271,7 @@ async def add_text(char1,char2,runs,context,initial_question,history):
271
  withaudio=False,
272
  history=history,
273
  answer=last_question,
274
- debug_print=False,
275
  add_answer_to_history=False
276
  )
277
 
@@ -308,11 +308,11 @@ async def add_text(char1,char2,runs,context,initial_question,history):
308
  #This needs to be last before yield
309
  initial_question=last_question
310
 
311
- yield gr.update(value=initial_question, interactive=False),returned_history, *audios
312
  else:
313
  #This needs to be last before yield
314
  initial_question=last_question
315
- yield gr.update(value=initial_question, interactive=False),returned_history
316
 
317
 
318
 
@@ -408,6 +408,6 @@ with gr.Blocks(css=css) as interface:
408
 
409
 
410
 
411
- interface.queue(concurrency_count=10).launch()
412
 
413
 
 
271
  withaudio=False,
272
  history=history,
273
  answer=last_question,
274
+ debug_print=True,
275
  add_answer_to_history=False
276
  )
277
 
 
308
  #This needs to be last before yield
309
  initial_question=last_question
310
 
311
+ yield gr.update(value=initial_question, interactive=True),returned_history, *audios
312
  else:
313
  #This needs to be last before yield
314
  initial_question=last_question
315
+ yield gr.update(value=initial_question, interactive=True),returned_history
316
 
317
 
318
 
 
408
 
409
 
410
 
411
+ interface.queue().launch()
412
 
413