Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -132,7 +132,7 @@ with app:
|
|
132 |
translated_text = gr.Textbox(lines=3,label="Translated Text")
|
133 |
|
134 |
gr.Examples(examples, inputs=[input_text, text_biogpt, text_m2m100,text_lang], outputs=[prompt_text, output_text, translated_text], fn=biogpt_text, cache_examples=False)
|
135 |
-
|
136 |
-
|
137 |
|
138 |
app.launch()
|
|
|
132 |
translated_text = gr.Textbox(lines=3,label="Translated Text")
|
133 |
|
134 |
gr.Examples(examples, inputs=[input_text, text_biogpt, text_m2m100,text_lang], outputs=[prompt_text, output_text, translated_text], fn=biogpt_text, cache_examples=False)
|
135 |
+
text_button.click(biogpt_text, inputs=[input_text, text_biogpt, text_m2m100 ,text_lang], outputs=[prompt_text, output_text, translated_text])
|
136 |
+
audio_button.click(biogpt_audio, inputs=[input_audio, audio_biogpt, audio_whisper, audio_lang, audio_m2m100], outputs=[prompt_text, output_text, translated_text])
|
137 |
|
138 |
app.launch()
|