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