rajaramesh commited on
Commit
d461195
·
verified ·
1 Parent(s): 7ff8cfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,16 +1,16 @@
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
- pipe = pipeline("sentiment-analysis")
10
 
11
  text=st.text_area("enter something")
12
 
13
  if text:
14
- out=pipe(text)
15
- st.json(out)
16
- # st.write(f"You have entered {text}")
 
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
+ # pipe = pipeline("sentiment-analysis")
10
 
11
  text=st.text_area("enter something")
12
 
13
  if text:
14
+ # out=pipe(text)
15
+ # st.json(out)
16
+ st.write(f"You have entered {text}")