Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def translate_srt(file, target_language):
|
|
| 29 |
# Gradio interface
|
| 30 |
iface = gr.Interface(
|
| 31 |
fn=translate_srt,
|
| 32 |
-
inputs=[gr.
|
| 33 |
outputs="text",
|
| 34 |
title="SRT File Translator",
|
| 35 |
description="Translate SRT files to the selected language using Mixtral model."
|
|
|
|
| 29 |
# Gradio interface
|
| 30 |
iface = gr.Interface(
|
| 31 |
fn=translate_srt,
|
| 32 |
+
inputs=[gr.File(label="Upload SRT File"), gr.Dropdown(["fr", "en", "es", "de", "it", "pt"], label="Target Language")],
|
| 33 |
outputs="text",
|
| 34 |
title="SRT File Translator",
|
| 35 |
description="Translate SRT files to the selected language using Mixtral model."
|