Update emoji and add app description
Browse files
README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
---
|
| 2 |
title: Babelfish
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: yellow
|
| 6 |
sdk: gradio
|
|
|
|
| 1 |
---
|
| 2 |
title: Babelfish
|
| 3 |
+
emoji: 🐠
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: yellow
|
| 6 |
sdk: gradio
|
app.py
CHANGED
|
@@ -11,6 +11,9 @@ def transcribe(audio, translate):
|
|
| 11 |
|
| 12 |
return result["text"]
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
gr.Interface(
|
| 16 |
fn=transcribe,
|
|
@@ -18,6 +21,8 @@ gr.Interface(
|
|
| 18 |
gr.Audio(source="microphone", type="filepath"),
|
| 19 |
gr.Checkbox(label="Translate to english"),
|
| 20 |
],
|
|
|
|
|
|
|
| 21 |
examples=[
|
| 22 |
["samples/french_hello.wav", True],
|
| 23 |
["samples/english_hello.wav", True],
|
|
|
|
| 11 |
|
| 12 |
return result["text"]
|
| 13 |
|
| 14 |
+
title = "BabelFish"
|
| 15 |
+
|
| 16 |
+
description = "Record your voice in any language, babelfish will output a transcript of what was said. Check 'Translate to english' to get an english transcription. Based on the OpenAI Whisper model"
|
| 17 |
|
| 18 |
gr.Interface(
|
| 19 |
fn=transcribe,
|
|
|
|
| 21 |
gr.Audio(source="microphone", type="filepath"),
|
| 22 |
gr.Checkbox(label="Translate to english"),
|
| 23 |
],
|
| 24 |
+
title=title,
|
| 25 |
+
description=description,
|
| 26 |
examples=[
|
| 27 |
["samples/french_hello.wav", True],
|
| 28 |
["samples/english_hello.wav", True],
|