Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,11 +30,10 @@ def predict_sentiment(text):
|
|
30 |
input = vectoriser.transform(input)
|
31 |
res = model.predict(input)
|
32 |
if (res==1):
|
33 |
-
|
34 |
else :
|
35 |
-
|
36 |
-
|
37 |
-
return img
|
38 |
|
39 |
|
40 |
iface = gr.Interface(
|
|
|
30 |
input = vectoriser.transform(input)
|
31 |
res = model.predict(input)
|
32 |
if (res==1):
|
33 |
+
sentiment="https://files.selecthealth.cloud/api/public/content/228422-being_positive_blog_lg.jpg"
|
34 |
else :
|
35 |
+
sentiment="https://mentalhealthatease.com/wp-content/uploads/2022/02/girl-with-negative-thoughts-scaled.jpeg"
|
36 |
+
return sentiment
|
|
|
37 |
|
38 |
|
39 |
iface = gr.Interface(
|