Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,6 +13,23 @@ st.set_page_config(page_title="Rap Generator", page_icon=":bar_chart:")
|
|
| 13 |
openai.api_key = st.secrets['OPENAI_API_KEY']
|
| 14 |
prompt_template = st.secrets['PROMPT_RAP_GENERATOR']
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
# Page title
|
| 17 |
st.title('Rap Generator')
|
| 18 |
|
|
@@ -79,19 +96,3 @@ else:
|
|
| 79 |
if result:
|
| 80 |
st.write(result)
|
| 81 |
|
| 82 |
-
# Style adjustments (optional, remove if not needed)
|
| 83 |
-
st.markdown(
|
| 84 |
-
"""
|
| 85 |
-
<style>
|
| 86 |
-
/* Custom style adjustments */
|
| 87 |
-
.st-emotion-cache-iiif1v { display: none !important; }
|
| 88 |
-
.st-emotion-cache-gh2jqd {padding: 6rem 1rem 0rem;}
|
| 89 |
-
@media (max-width: 50.5rem) {
|
| 90 |
-
.st-emotion-cache-gh2jqd {
|
| 91 |
-
max-width: calc(0rem + 100vw);
|
| 92 |
-
}
|
| 93 |
-
}
|
| 94 |
-
</style>
|
| 95 |
-
""",
|
| 96 |
-
unsafe_allow_html=True,
|
| 97 |
-
)
|
|
|
|
| 13 |
openai.api_key = st.secrets['OPENAI_API_KEY']
|
| 14 |
prompt_template = st.secrets['PROMPT_RAP_GENERATOR']
|
| 15 |
|
| 16 |
+
# Style adjustments (optional, remove if not needed)
|
| 17 |
+
st.markdown(
|
| 18 |
+
"""
|
| 19 |
+
<style>
|
| 20 |
+
/* Custom style adjustments */
|
| 21 |
+
.st-emotion-cache-iiif1v { display: none !important; }
|
| 22 |
+
.st-emotion-cache-gh2jqd {padding: 6rem 1rem 0rem;}
|
| 23 |
+
@media (max-width: 50.5rem) {
|
| 24 |
+
.st-emotion-cache-gh2jqd {
|
| 25 |
+
max-width: calc(0rem + 100vw);
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
</style>
|
| 29 |
+
""",
|
| 30 |
+
unsafe_allow_html=True,
|
| 31 |
+
)
|
| 32 |
+
|
| 33 |
# Page title
|
| 34 |
st.title('Rap Generator')
|
| 35 |
|
|
|
|
| 96 |
if result:
|
| 97 |
st.write(result)
|
| 98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|