Spaces:
Running
Running
Update pages/22_NLP_Transformer_Prompt_2.py
Browse files
pages/22_NLP_Transformer_Prompt_2.py
CHANGED
@@ -18,6 +18,10 @@ def classify_text(text):
|
|
18 |
|
19 |
# Streamlit interface
|
20 |
st.title("NLP Transformer with PyTorch and Hugging Face")
|
|
|
|
|
|
|
|
|
21 |
st.header("Sentiment Analysis")
|
22 |
|
23 |
text = st.text_area("Enter text for sentiment analysis:")
|
|
|
18 |
|
19 |
# Streamlit interface
|
20 |
st.title("NLP Transformer with PyTorch and Hugging Face")
|
21 |
+
|
22 |
+
prompt_text = "Crt n NLP trnsfrmr xmpl sng PyTrch wth Hggng Fc, dd Strmlnt ntrfc fr npts nd tpts, ncld mtlpl grph f ncssry. Cd shld b sy t ct nd pst"
|
23 |
+
st.write(f"**Prompt:** {prompt_text}")
|
24 |
+
|
25 |
st.header("Sentiment Analysis")
|
26 |
|
27 |
text = st.text_area("Enter text for sentiment analysis:")
|