Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,15 +40,15 @@ def t2seq(text, namn_model):
|
|
| 40 |
|
| 41 |
# Use Blocks
|
| 42 |
with gr.Blocks() as demo:
|
| 43 |
-
|
| 44 |
-
|
| 45 |
text_input = gr.Textbox(label="Input Text")
|
| 46 |
model_choices = gr.Dropdown(choices=["Group", "Technique", "Soft"], label="Model")
|
| 47 |
text_output = gr.Textbox(label="Output")
|
| 48 |
submit_btn = gr.Button("Submit")
|
| 49 |
submit_btn.click(fn=t2t, inputs=[text_input, model_choices], outputs=text_output)
|
| 50 |
|
| 51 |
-
|
| 52 |
text_input_seq = gr.Textbox(label="Input Text")
|
| 53 |
model_choices_seq = gr.Dropdown(choices=["Group", "Technique", "Soft"], label="Model")
|
| 54 |
text_output_seq = gr.Textbox(label="Output")
|
|
|
|
| 40 |
|
| 41 |
# Use Blocks
|
| 42 |
with gr.Blocks() as demo:
|
| 43 |
+
|
| 44 |
+
with gr.Tab("T2T"):
|
| 45 |
text_input = gr.Textbox(label="Input Text")
|
| 46 |
model_choices = gr.Dropdown(choices=["Group", "Technique", "Soft"], label="Model")
|
| 47 |
text_output = gr.Textbox(label="Output")
|
| 48 |
submit_btn = gr.Button("Submit")
|
| 49 |
submit_btn.click(fn=t2t, inputs=[text_input, model_choices], outputs=text_output)
|
| 50 |
|
| 51 |
+
with gr.Tab("T2Seq"):
|
| 52 |
text_input_seq = gr.Textbox(label="Input Text")
|
| 53 |
model_choices_seq = gr.Dropdown(choices=["Group", "Technique", "Soft"], label="Model")
|
| 54 |
text_output_seq = gr.Textbox(label="Output")
|