Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ def transcribe_audio(zip_file):
|
|
| 35 |
# Define the Gradio interface
|
| 36 |
interface = gr.Interface(
|
| 37 |
fn=transcribe_audio,
|
| 38 |
-
inputs=gr.File(label="Upload ZIP file", type="
|
| 39 |
outputs=gr.JSON(label="Transcriptions"),
|
| 40 |
title="Audio Transcription with Whisper (Portuguese)",
|
| 41 |
description="Upload a ZIP file containing Portuguese audio files, and this tool will transcribe them to Portuguese."
|
|
|
|
| 35 |
# Define the Gradio interface
|
| 36 |
interface = gr.Interface(
|
| 37 |
fn=transcribe_audio,
|
| 38 |
+
inputs=gr.File(label="Upload ZIP file", type="filepath", file_types=[".zip"]),
|
| 39 |
outputs=gr.JSON(label="Transcriptions"),
|
| 40 |
title="Audio Transcription with Whisper (Portuguese)",
|
| 41 |
description="Upload a ZIP file containing Portuguese audio files, and this tool will transcribe them to Portuguese."
|