Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
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()
|