Seidazymov Adil
commited on
Commit
•
6ef792a
1
Parent(s):
4f92cf0
Detect language
Browse files- app.py +1 -1
- requirements.txt +1 -0
app.py
CHANGED
@@ -46,7 +46,7 @@ def detect_language(file_path):
|
|
46 |
|
47 |
gradio_app = gr.Interface(
|
48 |
fn=detect_language,
|
49 |
-
inputs=gr.Audio(
|
50 |
outputs="text",
|
51 |
title="File Upload Transcription",
|
52 |
description="Upload an audio file to determine language."
|
|
|
46 |
|
47 |
gradio_app = gr.Interface(
|
48 |
fn=detect_language,
|
49 |
+
inputs=gr.Audio(sources="upload", type="filepath"),
|
50 |
outputs="text",
|
51 |
title="File Upload Transcription",
|
52 |
description="Upload an audio file to determine language."
|
requirements.txt
CHANGED
@@ -1 +1,2 @@
|
|
1 |
transformers
|
|
|
|
1 |
transformers
|
2 |
+
gradio_client
|