r-o-y-a commited on
Commit
93a5fd8
1 Parent(s): 4e283af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -1,15 +1,13 @@
1
- import gradio as gr
2
 
3
  def my_inference_function(text):
4
  return text
5
-
6
- gr.load("models/arpanghoshal/EmoRoBERTa").launch()
7
-
8
 
9
- gradio_interface = gradio.Interface(
10
  fn = my_inference_function,
11
  inputs = "text",
12
  outputs = "text"
13
  )
14
- gradio_interface.queue(api_open=True)
15
- gradio_interface.launch()
 
 
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
+