mozed54 commited on
Commit
08239b2
·
verified ·
1 Parent(s): 7b385b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -346,7 +346,7 @@ def respond_gemma(progress=gr.Progress()):
346
  for partial in generate_gemma_response(transcription, progress=progress):
347
  last_partial = partial
348
  yield (
349
- partial,
350
  gr.update(visible=False),
351
  gr.update(visible=False),
352
  gr.update(interactive=False),
@@ -384,7 +384,7 @@ def regenerate_gemma_only(progress=gr.Progress()):
384
  last_partial = ""
385
  for partial in generate_gemma_response(transcription, progress=progress):
386
  last_partial = partial
387
- yield partial, gr.update(visible=False)
388
 
389
  current_exchange["reponse"] = last_partial
390
  progress(1.0, desc="✅ Prêt")
 
346
  for partial in generate_gemma_response(transcription, progress=progress):
347
  last_partial = partial
348
  yield (
349
+ "⏳ جاري التفكير...", # placeholder pendant la génération
350
  gr.update(visible=False),
351
  gr.update(visible=False),
352
  gr.update(interactive=False),
 
384
  last_partial = ""
385
  for partial in generate_gemma_response(transcription, progress=progress):
386
  last_partial = partial
387
+ yield "⏳ جاري التفكير...", gr.update(visible=False)
388
 
389
  current_exchange["reponse"] = last_partial
390
  progress(1.0, desc="✅ Prêt")