Update app.py
Browse files
app.py
CHANGED
|
@@ -100,12 +100,7 @@ with gr.Blocks() as demo:
|
|
| 100 |
text_output = gr.Label(label="文字情緒結果")
|
| 101 |
text.submit(fn=predict_text, inputs=text, outputs=text_output)
|
| 102 |
|
| 103 |
-
|
| 104 |
-
app = gr.TabbedInterface(
|
| 105 |
-
interface_list=[face_interface, voice_interface, text_interface],
|
| 106 |
-
tab_names=["臉部情緒", "語音情緒", "文字情緒"]
|
| 107 |
-
)
|
| 108 |
-
return app
|
| 109 |
|
| 110 |
if __name__ == "__main__":
|
| 111 |
demo = build_interface()
|
|
|
|
| 100 |
text_output = gr.Label(label="文字情緒結果")
|
| 101 |
text.submit(fn=predict_text, inputs=text, outputs=text_output)
|
| 102 |
|
| 103 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
if __name__ == "__main__":
|
| 106 |
demo = build_interface()
|