wasmdashai commited on
Commit
30d7b29
·
verified ·
1 Parent(s): c3f6c7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -42,13 +42,13 @@ def t2seq(text,namn_model):
42
 
43
  return str(out)
44
 
45
- tab1 = gr.Interface(fn=t2t, inputs=["text",model_choices], outputs="text")
46
- tab2 = gr.Interface(fn=t2seq, inputs=["text",model_choices], outputs="text")
47
  import gradio as gr
48
 
49
 
50
 
51
- demo = gr.TabbedInterface([tab1, tab2], ["T2T", "T2Seq"])
52
 
53
 
54
  demo.launch()
 
42
 
43
  return str(out)
44
 
45
+ T2T = gr.Interface(fn=t2t, inputs=["text",model_choices], outputs="text")
46
+ T2Seq = gr.Interface(fn=t2seq, inputs=["text",model_choices], outputs="text")
47
  import gradio as gr
48
 
49
 
50
 
51
+ demo = gr.TabbedInterface([T2T, T2Seq], ["T2T", "T2Seq"])
52
 
53
 
54
  demo.launch()