Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,13 @@
|
|
1 |
-
import gradio
|
2 |
|
3 |
def my_inference_function(text):
|
4 |
return text
|
5 |
-
|
6 |
-
gr.load("models/arpanghoshal/EmoRoBERTa").launch()
|
7 |
-
|
8 |
|
9 |
-
|
10 |
fn = my_inference_function,
|
11 |
inputs = "text",
|
12 |
outputs = "text"
|
13 |
)
|
14 |
-
|
15 |
-
|
|
|
|
1 |
+
import gradio
|
2 |
|
3 |
def my_inference_function(text):
|
4 |
return text
|
|
|
|
|
|
|
5 |
|
6 |
+
gr = gradio.Interface(
|
7 |
fn = my_inference_function,
|
8 |
inputs = "text",
|
9 |
outputs = "text"
|
10 |
)
|
11 |
+
|
12 |
+
gr.load("models/arpanghoshal/EmoRoBERTa").launch()
|
13 |
+
|