Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -42,13 +42,13 @@ def t2seq(text,namn_model):
|
|
42 |
|
43 |
return str(out)
|
44 |
|
45 |
-
|
46 |
-
|
47 |
import gradio as gr
|
48 |
|
49 |
|
50 |
|
51 |
-
demo = gr.TabbedInterface([
|
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()
|