Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -146,14 +146,14 @@ with demo:
|
|
146 |
text2 = gr.Textbox()
|
147 |
source_lang = gr.Dropdown(label="Source lang", choices=list(lang_id.keys()), value=list(lang_id.keys())[0])
|
148 |
target_lang = gr.Dropdown(label="target lang", choices=list(lang_id.keys()), value=list(lang_id.keys())[0])
|
149 |
-
src_lang = lang_id[source_lang]
|
150 |
-
|
151 |
#gr.Examples(examples = list(lang_id.keys()),
|
152 |
# inputs=[
|
153 |
# source_lang])
|
154 |
b1 = gr.Button("convert to text")
|
155 |
b3 = gr.Button("translate")
|
156 |
-
b3.click(translation_text, inputs = (src_lang, trg_lang, text0), outputs = text2)
|
157 |
b1.click(audio_a_text, inputs=audio, outputs=text)
|
158 |
|
159 |
b2 = gr.Button("Classification of speech")
|
|
|
146 |
text2 = gr.Textbox()
|
147 |
source_lang = gr.Dropdown(label="Source lang", choices=list(lang_id.keys()), value=list(lang_id.keys())[0])
|
148 |
target_lang = gr.Dropdown(label="target lang", choices=list(lang_id.keys()), value=list(lang_id.keys())[0])
|
149 |
+
#src_lang = lang_id[source_lang]
|
150 |
+
t#rg_lang = lang_id[target_lang]
|
151 |
#gr.Examples(examples = list(lang_id.keys()),
|
152 |
# inputs=[
|
153 |
# source_lang])
|
154 |
b1 = gr.Button("convert to text")
|
155 |
b3 = gr.Button("translate")
|
156 |
+
#b3.click(translation_text, inputs = (src_lang, trg_lang, text0), outputs = text2)
|
157 |
b1.click(audio_a_text, inputs=audio, outputs=text)
|
158 |
|
159 |
b2 = gr.Button("Classification of speech")
|