wasmdashai commited on
Commit
add7b09
·
verified ·
1 Parent(s): b067dbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -14
app.py CHANGED
@@ -40,20 +40,27 @@ def t2seq(text, namn_model):
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")
55
- submit_btn_seq = gr.Button("Submit")
56
- submit_btn_seq.click(fn=t2seq, inputs=[text_input_seq, model_choices_seq], outputs=text_output_seq)
 
 
 
 
 
 
 
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