Update app.py
Browse files
app.py
CHANGED
|
@@ -153,11 +153,18 @@ with gr.Blocks(title="BOB Processor") as demo:
|
|
| 153 |
lines=10
|
| 154 |
)
|
| 155 |
|
|
|
|
|
|
|
| 156 |
process_btn.click(
|
| 157 |
process_audio_file,
|
| 158 |
inputs=[audio_input],
|
| 159 |
-
outputs=[transcription_output, resume_output]
|
|
|
|
|
|
|
| 160 |
)
|
| 161 |
|
| 162 |
if __name__ == "__main__":
|
| 163 |
-
demo.launch(
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
lines=10
|
| 154 |
)
|
| 155 |
|
| 156 |
+
|
| 157 |
+
)
|
| 158 |
process_btn.click(
|
| 159 |
process_audio_file,
|
| 160 |
inputs=[audio_input],
|
| 161 |
+
outputs=[transcription_output, resume_output],
|
| 162 |
+
show_progress=True, # Afficher la barre de progression
|
| 163 |
+
queue=True # Activer la queue pour éviter timeout
|
| 164 |
)
|
| 165 |
|
| 166 |
if __name__ == "__main__":
|
| 167 |
+
demo.launch(
|
| 168 |
+
max_threads=1, # Un seul thread pour éviter surcharge
|
| 169 |
+
show_error=True # Afficher les erreurs détaillées
|
| 170 |
+
)
|