r-o-y-a commited on
Commit
dba7f31
·
1 Parent(s): 95ac22e
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -1,5 +1,11 @@
1
- import gradio as gr
2
 
3
- demo = gr.load("models/arpanghoshal/EmoRoBERTa")
4
- demo.queue(api_open=False)
5
- demo.launch()
 
 
 
 
 
 
 
1
+ import gradio
2
 
3
+ def my_inference_function(text):
4
+ return text
5
+
6
+ gradio_interface = gradio.Interface(
7
+ fn = my_inference_function,
8
+ inputs = "text",
9
+ outputs = "text"
10
+ )
11
+ gradio_interface.launch()