Spaces:
Sleeping
Sleeping
Gabriela Nicole Gonzalez Saez
commited on
Commit
·
6ed6448
1
Parent(s):
4dc2dcb
default
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
|
|
130 |
text_output_box = gr.Textbox(label="Target Text")
|
131 |
gr.Examples(saliency_examples, text_input)
|
132 |
text_output = gr.HTML()
|
133 |
-
radio = gr.Radio(choices=['en-zh', 'en-es', 'en-fr'
|
134 |
text_button = gr.Button("Translate")
|
135 |
|
136 |
with gr.Tab("Contrastive"):
|
@@ -144,7 +144,7 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
|
|
144 |
gr.Examples(contrastive_examples,[text_input_c, text_input_ref, text_input_cont])
|
145 |
text_output_c = gr.HTML()
|
146 |
|
147 |
-
radio_c = gr.Radio(choices=['en-zh', 'en-es', 'en-fr'
|
148 |
text_button_c = gr.Button("Translate")
|
149 |
|
150 |
text_button.click(fn=saliency_inseq, inputs=[text_input, radio], outputs=[text_output, text_output_box])
|
|
|
130 |
text_output_box = gr.Textbox(label="Target Text")
|
131 |
gr.Examples(saliency_examples, text_input)
|
132 |
text_output = gr.HTML()
|
133 |
+
radio = gr.Radio(choices=['en-zh', 'en-es', 'en-fr'], value="en-fr", label= '', container=False)
|
134 |
text_button = gr.Button("Translate")
|
135 |
|
136 |
with gr.Tab("Contrastive"):
|
|
|
144 |
gr.Examples(contrastive_examples,[text_input_c, text_input_ref, text_input_cont])
|
145 |
text_output_c = gr.HTML()
|
146 |
|
147 |
+
radio_c = gr.Radio(choices=['en-zh', 'en-es', 'en-fr'], value="en-fr", label= '', container=False)
|
148 |
text_button_c = gr.Button("Translate")
|
149 |
|
150 |
text_button.click(fn=saliency_inseq, inputs=[text_input, radio], outputs=[text_output, text_output_box])
|