Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -136,8 +136,8 @@ def translation_text(source_lang, target_lang, user_input):
|
|
136 |
generated_tokens, skip_special_tokens=True)[0]
|
137 |
return translated_text
|
138 |
|
139 |
-
def print_s(
|
140 |
-
return
|
141 |
demo = gr.Blocks()
|
142 |
|
143 |
with demo:
|
@@ -158,6 +158,6 @@ with demo:
|
|
158 |
b1.click(audio_a_text, inputs=audio, outputs=text)
|
159 |
|
160 |
b2 = gr.Button("Classification of speech")
|
161 |
-
b2.click(print_s, inputs=
|
162 |
|
163 |
demo.launch()
|
|
|
136 |
generated_tokens, skip_special_tokens=True)[0]
|
137 |
return translated_text
|
138 |
|
139 |
+
def print_s(source_lang):
|
140 |
+
return source_lang
|
141 |
demo = gr.Blocks()
|
142 |
|
143 |
with demo:
|
|
|
158 |
b1.click(audio_a_text, inputs=audio, outputs=text)
|
159 |
|
160 |
b2 = gr.Button("Classification of speech")
|
161 |
+
b2.click(print_s, inputs= source_lang, outputs=text)
|
162 |
|
163 |
demo.launch()
|