Spaces:
Running
Running
Update pages/21_NLP_Transformer_Prompt_1.py
Browse files
pages/21_NLP_Transformer_Prompt_1.py
CHANGED
@@ -11,6 +11,10 @@ classifier = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)
|
|
11 |
|
12 |
# Streamlit interface
|
13 |
st.title("Sentiment Analysis with Hugging Face Transformers")
|
|
|
|
|
|
|
|
|
14 |
st.write("Enter text to analyze its sentiment:")
|
15 |
|
16 |
input_text = st.text_area("Input Text", height=200)
|
|
|
11 |
|
12 |
# Streamlit interface
|
13 |
st.title("Sentiment Analysis with Hugging Face Transformers")
|
14 |
+
|
15 |
+
prompt_text = "create a nlp transformer example using pytorch that will run hugging face, put a streamlit interface on it that will take the appropriate inputs and outputs include a matplotlib graph if necessary with the output. The code should be all together to make it easy to cut and paste."
|
16 |
+
st.write(f"**Prompt:** {prompt_text}")
|
17 |
+
|
18 |
st.write("Enter text to analyze its sentiment:")
|
19 |
|
20 |
input_text = st.text_area("Input Text", height=200)
|