Spaces:
Build error
Build error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
with gr.Blocks() as demo:
|
| 2 |
+
history = gr.State([])
|
| 3 |
+
with gr.Row():
|
| 4 |
+
with gr.Column():
|
| 5 |
+
language = gr.Dropdown(list(LANGUAGES.keys()), value="english")
|
| 6 |
+
audio = gr.Audio(source="microphone", type="filepath")
|
| 7 |
+
link = gr.Textbox(label = "Put YouTube link here", value="")
|
| 8 |
+
submit = gr.Button(value="Translate")
|
| 9 |
+
with gr.Column():
|
| 10 |
+
chatbot = gr.Chatbot().style(color_map=("green", "gray"))
|
| 11 |
+
|
| 12 |
+
demo.launch()
|