Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,53 @@
|
|
| 1 |
# ------------------ GENERATE ------------------
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
api_key = os.getenv("GROQ_API_KEY")
|
| 5 |
|
|
|
|
| 1 |
# ------------------ GENERATE ------------------
|
| 2 |
+
import streamlit as st
|
| 3 |
+
from groq import Groq
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
# ------------------ PAGE CONFIG ------------------
|
| 7 |
+
st.set_page_config(
|
| 8 |
+
page_title="AI LinkedIn Post Generator",
|
| 9 |
+
page_icon="💼",
|
| 10 |
+
layout="centered"
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
# ------------------ CUSTOM CSS ------------------
|
| 14 |
+
st.markdown("""
|
| 15 |
+
<style>
|
| 16 |
+
body {
|
| 17 |
+
background: linear-gradient(135deg, #4facfe, #00f2fe);
|
| 18 |
+
}
|
| 19 |
+
.main {
|
| 20 |
+
background-color: white;
|
| 21 |
+
padding: 25px;
|
| 22 |
+
border-radius: 15px;
|
| 23 |
+
}
|
| 24 |
+
h1, h2, h3 {
|
| 25 |
+
color: #1f2937;
|
| 26 |
+
font-weight: 800;
|
| 27 |
+
}
|
| 28 |
+
p, label {
|
| 29 |
+
color: #374151;
|
| 30 |
+
font-weight: 600;
|
| 31 |
+
font-size: 16px;
|
| 32 |
+
}
|
| 33 |
+
.stButton>button {
|
| 34 |
+
background-color: #2563eb;
|
| 35 |
+
color: white;
|
| 36 |
+
font-weight: bold;
|
| 37 |
+
border-radius: 8px;
|
| 38 |
+
padding: 10px;
|
| 39 |
+
}
|
| 40 |
+
.stTextInput>div>div>input, .stTextArea textarea {
|
| 41 |
+
background-color: #f9fafb;
|
| 42 |
+
color: black;
|
| 43 |
+
font-weight: 600;
|
| 44 |
+
}
|
| 45 |
+
</style>
|
| 46 |
+
""", unsafe_allow_html=True)
|
| 47 |
+
|
| 48 |
+
# ------------------ TITLE ------------------
|
| 49 |
+
st.title("💼 AI LinkedIn Post Generator")
|
| 50 |
+
st.write("Create high-quality LinkedIn posts step-by-step 🚀")
|
| 51 |
|
| 52 |
api_key = os.getenv("GROQ_API_KEY")
|
| 53 |
|