Spaces:
Runtime error
Runtime error
fix prompt
Browse files
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}")
|