sergioska commited on
Commit
e51dd92
·
1 Parent(s): 4dfbd04

using prompt as input

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -6,5 +6,6 @@ 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
  if prompt:
10
  st.write(f"User has sent the following prompt: {output}")
 
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}")