Spaces:
Sleeping
Sleeping
Update app.py
Browse filesMaking the src_lang visible (not additional).
app.py
CHANGED
@@ -246,14 +246,14 @@ with gr.Blocks() as demo:
|
|
246 |
|
247 |
gr.Interface(
|
248 |
fn=translate_text,
|
249 |
-
inputs=[input_text,],
|
250 |
outputs=[
|
251 |
output_text_bilingual_model,
|
252 |
output_text_multilingual_model,
|
253 |
output_text_google_translate,
|
254 |
],
|
255 |
-
additional_inputs=[
|
256 |
-
clear_btn=None, # Unfortunately, clear_btn also reset the additional inputs. Hence disabling for now.
|
257 |
allow_flagging="never",
|
258 |
examples=examples,
|
259 |
cache_examples=True
|
|
|
246 |
|
247 |
gr.Interface(
|
248 |
fn=translate_text,
|
249 |
+
inputs=[input_text, src_lang,],
|
250 |
outputs=[
|
251 |
output_text_bilingual_model,
|
252 |
output_text_multilingual_model,
|
253 |
output_text_google_translate,
|
254 |
],
|
255 |
+
additional_inputs=[sentences_per_chunk,],
|
256 |
+
#clear_btn=None, # Unfortunately, clear_btn also reset the additional inputs. Hence disabling for now.
|
257 |
allow_flagging="never",
|
258 |
examples=examples,
|
259 |
cache_examples=True
|