Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
pipe = pipeline("text-classification", model="cardiffnlp/twitter-roberta-base-sentiment-latest")
|
| 6 |
|
| 7 |
-
gr.
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
hello_world = gr.Interface(lambda name: "Hello " + name, "text", "text")
|
| 4 |
+
bye_world = gr.Interface(lambda name: "Bye " + name, "text", "text")
|
|
|
|
| 5 |
|
| 6 |
+
demo = gr.TabbedInterface([hello_world, bye_world], ["Hello World", "Bye World"])
|
| 7 |
+
|
| 8 |
+
if __name__ == "__main__":
|
| 9 |
+
demo.launch()
|