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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -40,15 +40,15 @@ def t2seq(text, namn_model):
40
 
41
  # Use Blocks
42
  with gr.Blocks() as demo:
43
- with gr.TabbedInterface(["T2T", "T2Seq"]):
44
- with gr.TabItem("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.TabItem("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")
 
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")