Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,6 +48,18 @@ def change(sentence):
|
|
| 48 |
return final_result
|
| 49 |
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
-
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|