heysho commited on
Commit
ced0589
·
verified ·
1 Parent(s): 73e4333

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -29
app.py CHANGED
@@ -16,6 +16,23 @@ openai.api_key = st.secrets['OPENAI_API_KEY']
16
  # Page title
17
  st.title('Code Debugging Tool')
18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  # Initialize usage counter and language in session state
20
  if 'usage_count' not in st.session_state:
21
  st.session_state['usage_count'] = 0
@@ -96,32 +113,3 @@ else:
96
  result = generate_from_ai("Japanese", ja_input_task, ja_input_code, ja_input_error)
97
  if result:
98
  st.write(result)
99
-
100
- # Styling (optional)
101
- st.markdown(
102
- """
103
- <style>
104
- /* Custom style adjustments */
105
- .st-emotion-cache-iiif1v { display: none !important; }
106
- .st-emotion-cache-13ln4jf {padding: 6rem 1rem 0rem;}
107
- @media (max-width: 50.5rem) {
108
- .st-emotion-cache-13ln4jf {
109
- max-width: calc(0rem + 100vw);
110
- }
111
- }
112
- </style>
113
- """,
114
- unsafe_allow_html=True,
115
- )
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
 
16
  # Page title
17
  st.title('Code Debugging Tool')
18
 
19
+ # Styling (optional)
20
+ st.markdown(
21
+ """
22
+ <style>
23
+ /* Custom style adjustments */
24
+ .st-emotion-cache-iiif1v { display: none !important; }
25
+ .st-emotion-cache-13ln4jf {padding: 6rem 1rem 0rem;}
26
+ @media (max-width: 50.5rem) {
27
+ .st-emotion-cache-13ln4jf {
28
+ max-width: calc(0rem + 100vw);
29
+ }
30
+ }
31
+ </style>
32
+ """,
33
+ unsafe_allow_html=True,
34
+ )
35
+
36
  # Initialize usage counter and language in session state
37
  if 'usage_count' not in st.session_state:
38
  st.session_state['usage_count'] = 0
 
113
  result = generate_from_ai("Japanese", ja_input_task, ja_input_code, ja_input_error)
114
  if result:
115
  st.write(result)