Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
|
|
|
|
|
|
4 |
pipe=pipeline("sentiment-analysis")
|
5 |
text=st.text_area("enter your review")
|
6 |
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
import os
|
5 |
+
os.environ["TRANSFORMERS_CACHE"] = "/tmp/huggingface"
|
6 |
+
|
7 |
pipe=pipeline("sentiment-analysis")
|
8 |
text=st.text_area("enter your review")
|
9 |
|