ShynBui commited on
Commit
33477ae
·
verified ·
1 Parent(s): a3d5952

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -2
app.py CHANGED
@@ -48,6 +48,18 @@ def change(sentence):
48
  return final_result
49
 
50
 
 
 
 
 
 
 
 
51
 
52
- demo = gr.Interface(fn=change, inputs="text", outputs="text", description=os.environ['DES'], examples=eval(os.environ['EXAMPLE']))
53
- demo.launch()
 
 
 
 
 
 
48
  return final_result
49
 
50
 
51
+ demo_interface = gr.Interface(
52
+ fn=change,
53
+ inputs="text",
54
+ outputs="text",
55
+ examples=os.environ['DES_EXAMPLE'],
56
+ description=os.environ['DES_DEMO']
57
+ )
58
 
59
+ intro_interface = gr.HTML(description=os.environ['DES_INTERFACE'])
60
+ tabbed_interface = gr.TabbedInterface(
61
+ interface_list=[demo_interface, intro_interface],
62
+ tab_names=["Demo", "Giới thiệu"]
63
+ )
64
+
65
+ tabbed_interface.launch()