rajaramesh commited on
Commit
6799125
·
verified ·
1 Parent(s): 0aba942

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -1,13 +1,14 @@
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", device=-1) # Forces CPU
8
 
9
- text=st.text_area("enter your review")
10
 
11
  if text:
12
- out=pipe(text)
13
- st.json(out)
 
 
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", device=-1) # Forces CPU
8
 
9
+ text=st.text_area("enter something")
10
 
11
  if text:
12
+ # out=pipe(text)
13
+ # st.json(out)
14
+ st.write(f"You have entered {text}")