summerstay commited on
Commit
90d1b9e
1 Parent(s): ae53f18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -18
app.py CHANGED
@@ -1,20 +1,4 @@
1
- import gradio as gr
2
-
3
- from transformers import pipeline
4
-
5
- sentiment = pipeline("sentiment-analysis")
6
-
7
- def get_sentiment(input_text):
8
- return sentiment(input_text)
9
 
10
- iface = gr.Interface(fn = get_sentiment,
11
- inputs = "text",
12
- outputs = ['text'],
13
- title = 'Sentiment Analysis',
14
- description="Get Sentiment Negative/Positive for the given input")
15
-
16
- iface.launch(inline = False)
17
- """
18
  import gradio as gr
19
  from sentence_transformers import SentenceTransformer
20
 
@@ -33,5 +17,4 @@ outputs = ['text'],
33
  title = 'get vectors',
34
  description = 'get vectors for search')
35
 
36
- interface.launch(inline = False)
37
- """
 
 
 
 
 
 
 
 
 
1
 
 
 
 
 
 
 
 
 
2
  import gradio as gr
3
  from sentence_transformers import SentenceTransformer
4
 
 
17
  title = 'get vectors',
18
  description = 'get vectors for search')
19
 
20
+ interface.launch(inline = False)