Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -40,20 +40,27 @@ def t2seq(text, namn_model):
|
|
40 |
|
41 |
# Use Blocks
|
42 |
with gr.Blocks() as demo:
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
demo.launch()
|
59 |
|
|
|
40 |
|
41 |
# Use Blocks
|
42 |
with gr.Blocks() as demo:
|
43 |
+
with gr.Row():
|
44 |
+
with gr.Tab("Thread Base"):
|
45 |
+
gr.Markdown("### Thread Base")
|
46 |
+
with gr.Row():
|
47 |
+
with gr.Tab("T2T"):
|
48 |
+
text_input = gr.Textbox(label="Input Text")
|
49 |
+
model_choices = gr.Dropdown(choices=["Group", "Technique", "Soft"], label="Model")
|
50 |
+
text_output = gr.Textbox(label="Output")
|
51 |
+
submit_btn = gr.Button("Submit")
|
52 |
+
submit_btn.click(fn=t2t, inputs=[text_input, model_choices], outputs=text_output)
|
53 |
+
|
54 |
+
with gr.Tab("T2Seq"):
|
55 |
+
text_input_seq = gr.Textbox(label="Input Text")
|
56 |
+
model_choices_seq = gr.Dropdown(choices=["Group", "Technique", "Soft"], label="Model")
|
57 |
+
text_output_seq = gr.Textbox(label="Output")
|
58 |
+
submit_btn_seq = gr.Button("Submit")
|
59 |
+
submit_btn_seq.click(fn=t2seq, inputs=[text_input_seq, model_choices_seq], outputs=text_output_seq)
|
60 |
+
|
61 |
+
|
62 |
+
with gr.Tab("Stute Base"):
|
63 |
+
gr.Markdown("### Stute Base")
|
64 |
|
65 |
demo.launch()
|
66 |
|