heysho commited on
Commit
1d6f1ec
·
verified ·
1 Parent(s): 42fc3f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -16
app.py CHANGED
@@ -15,6 +15,23 @@ openai.api_key = st.secrets['OPENAI_API_KEY']
15
  # Page title
16
  st.title('Sentence Correction')
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  # Initialize usage count and language in session state
19
  if 'usage_count' not in st.session_state:
20
  st.session_state['usage_count'] = 0
@@ -67,19 +84,3 @@ else:
67
  if result:
68
  st.write(result)
69
 
70
- # Style adjustments (optional, remove if not needed)
71
- st.markdown(
72
- """
73
- <style>
74
- /* Custom style adjustments */
75
- .st-emotion-cache-iiif1v { display: none !important; }
76
- .st-emotion-cache-13ln4jf {padding: 6rem 1rem 0rem;}
77
- @media (max-width: 50.5rem) {
78
- .st-emotion-cache-13ln4jf {
79
- max-width: calc(0rem + 100vw);
80
- }
81
- }
82
- </style>
83
- """,
84
- unsafe_allow_html=True,
85
- )
 
15
  # Page title
16
  st.title('Sentence Correction')
17
 
18
+ # Style adjustments (optional, remove if not needed)
19
+ st.markdown(
20
+ """
21
+ <style>
22
+ /* Custom style adjustments */
23
+ .st-emotion-cache-iiif1v { display: none !important; }
24
+ .st-emotion-cache-gh2jqd {padding: 6rem 1rem 0rem;}
25
+ @media (max-width: 50.5rem) {
26
+ .st-emotion-cache-gh2jqd {
27
+ max-width: calc(0rem + 100vw);
28
+ }
29
+ }
30
+ </style>
31
+ """,
32
+ unsafe_allow_html=True,
33
+ )
34
+
35
  # Initialize usage count and language in session state
36
  if 'usage_count' not in st.session_state:
37
  st.session_state['usage_count'] = 0
 
84
  if result:
85
  st.write(result)
86