Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,8 +43,8 @@ print(sentiment("Worst rental I ever got")[0]['score'])
|
|
43 |
def get_sentiment(text):
|
44 |
return sentiment(text)[0]['label'], sentiment(text)[0]['score']
|
45 |
|
46 |
-
"""Build an interface for the app using Gradio.
|
47 |
-
The customer wants this result :
|
48 |
|
49 |
interface = gr.Interface(fn=get_sentiment,
|
50 |
inputs=gr.Textbox(lines=1, label="Enter the review:"),
|
|
|
43 |
def get_sentiment(text):
|
44 |
return sentiment(text)[0]['label'], sentiment(text)[0]['score']
|
45 |
|
46 |
+
"""Build an interface for the app using Gradio.
|
47 |
+
The customer wants this result :"""
|
48 |
|
49 |
interface = gr.Interface(fn=get_sentiment,
|
50 |
inputs=gr.Textbox(lines=1, label="Enter the review:"),
|