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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -41,14 +41,11 @@ def t2seq(text,namn_model):
41
 
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()
 
41
 
42
 
43
  return str(out)
44
+ with gr.Blocks() as demo:
45
 
46
+ T2T = gr.Interface(fn=t2t, inputs=["text",model_choices], outputs="text")
47
+ T2Seq = gr.Interface(fn=t2seq, inputs=["text",model_choices], outputs="text")
48
+ demo = gr.TabbedInterface([T2T, T2Seq], ["T2T", "T2Seq"])
 
 
 
 
49
 
50
 
51
  demo.launch()