Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,23 @@ prompt = st.secrets['PROMPT_EMAIL_REVIEW_GENERATOR']
|
|
| 11 |
# Title of the page
|
| 12 |
st.title('Email Reply Generator')
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
# Initialize or retrieve the usage count and language from session state
|
| 15 |
if 'usage_count' not in st.session_state:
|
| 16 |
st.session_state['usage_count'] = 0
|
|
@@ -75,19 +92,3 @@ if st.session_state['usage_count'] < max_uses:
|
|
| 75 |
else:
|
| 76 |
st.error("You have reached your maximum usage limit.")
|
| 77 |
|
| 78 |
-
# Style adjustments (optional, remove if not needed)
|
| 79 |
-
st.markdown(
|
| 80 |
-
"""
|
| 81 |
-
<style>
|
| 82 |
-
/* Custom style adjustments */
|
| 83 |
-
.st-emotion-cache-iiif1v { display: none !important; }
|
| 84 |
-
.st-emotion-cache-13ln4jf {padding: 6rem 1rem 0rem;}
|
| 85 |
-
@media (max-width: 50.5rem) {
|
| 86 |
-
.st-emotion-cache-13ln4jf {
|
| 87 |
-
max-width: calc(0rem + 100vw);
|
| 88 |
-
}
|
| 89 |
-
}
|
| 90 |
-
</style>
|
| 91 |
-
""",
|
| 92 |
-
unsafe_allow_html=True,
|
| 93 |
-
)
|
|
|
|
| 11 |
# Title of the page
|
| 12 |
st.title('Email Reply Generator')
|
| 13 |
|
| 14 |
+
# Style adjustments (optional, remove if not needed)
|
| 15 |
+
st.markdown(
|
| 16 |
+
"""
|
| 17 |
+
<style>
|
| 18 |
+
/* Custom style adjustments */
|
| 19 |
+
.st-emotion-cache-iiif1v { display: none !important; }
|
| 20 |
+
.st-emotion-cache-13ln4jf {padding: 6rem 1rem 0rem;}
|
| 21 |
+
@media (max-width: 50.5rem) {
|
| 22 |
+
.st-emotion-cache-13ln4jf {
|
| 23 |
+
max-width: calc(0rem + 100vw);
|
| 24 |
+
}
|
| 25 |
+
}
|
| 26 |
+
</style>
|
| 27 |
+
""",
|
| 28 |
+
unsafe_allow_html=True,
|
| 29 |
+
)
|
| 30 |
+
|
| 31 |
# Initialize or retrieve the usage count and language from session state
|
| 32 |
if 'usage_count' not in st.session_state:
|
| 33 |
st.session_state['usage_count'] = 0
|
|
|
|
| 92 |
else:
|
| 93 |
st.error("You have reached your maximum usage limit.")
|
| 94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|