Update app.py
Browse files
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 |
-
|
| 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
|
| 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")
|