Added little goodlooks to Output box to tackle light/dark mode visibility issue
Browse files
app.py
CHANGED
|
@@ -144,7 +144,24 @@ if submit_button:
|
|
| 144 |
with st.spinner("Generating text..."):
|
| 145 |
output = generate_text(prompt, tone, max_length, temperature, top_p, repetition_penalty)
|
| 146 |
|
| 147 |
-
st.markdown(f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
|
| 149 |
# Generate and display word cloud
|
| 150 |
wordcloud = WordCloud(width=400, height=200, background_color="white").generate(output)
|
|
@@ -155,5 +172,5 @@ if submit_button:
|
|
| 155 |
|
| 156 |
# Footer
|
| 157 |
st.markdown("---")
|
| 158 |
-
st.write("
|
| 159 |
st.write("Wish me luck, 🤞")
|
|
|
|
| 144 |
with st.spinner("Generating text..."):
|
| 145 |
output = generate_text(prompt, tone, max_length, temperature, top_p, repetition_penalty)
|
| 146 |
|
| 147 |
+
st.markdown(f"""
|
| 148 |
+
<div style="
|
| 149 |
+
background: linear-gradient(145deg, #ffffff33, #1f1f1f99);
|
| 150 |
+
color: #f5f5f5;
|
| 151 |
+
padding: 1rem;
|
| 152 |
+
border-radius: 12px;
|
| 153 |
+
box-shadow: 0 4px 15px rgba(0,0,0,0.25);
|
| 154 |
+
font-family: 'Courier New', monospace;
|
| 155 |
+
font-size: 1rem;
|
| 156 |
+
white-space: pre-wrap;
|
| 157 |
+
backdrop-filter: blur(6px);
|
| 158 |
+
border: 1px solid rgba(255,255,255,0.1);
|
| 159 |
+
margin-top: 1rem;
|
| 160 |
+
">
|
| 161 |
+
{output}
|
| 162 |
+
</div>
|
| 163 |
+
""", unsafe_allow_html=True)
|
| 164 |
+
|
| 165 |
|
| 166 |
# Generate and display word cloud
|
| 167 |
wordcloud = WordCloud(width=400, height=200, background_color="white").generate(output)
|
|
|
|
| 172 |
|
| 173 |
# Footer
|
| 174 |
st.markdown("---")
|
| 175 |
+
st.write("Built with ❤️ by Utkarsh Shukla for GSoC Proposal 2025 | Powered by (Gemma + Hugging Face) and Saiyan Pride")
|
| 176 |
st.write("Wish me luck, 🤞")
|