sergioska commited on
Commit
91c7c45
·
1 Parent(s): e51dd92

fix prompt

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -3,9 +3,8 @@ import streamlit as st
3
  from transformers import pipeline
4
 
5
  classifier = pipeline("sentiment-analysis")
6
- output = classifier("We are very happy to show you the 🤗 Transformers library.")
7
 
8
  prompt = st.chat_input("Say something")
9
- output = classifier(prompt)
10
  if prompt:
 
11
  st.write(f"User has sent the following prompt: {output}")
 
3
  from transformers import pipeline
4
 
5
  classifier = pipeline("sentiment-analysis")
 
6
 
7
  prompt = st.chat_input("Say something")
 
8
  if prompt:
9
+ output = classifier(prompt)
10
  st.write(f"User has sent the following prompt: {output}")