Jimmyzheng-10 commited on
Commit
1dbdbd7
·
1 Parent(s): 741ddef

Fix theme problems

Browse files
Files changed (1) hide show
  1. app.py +1 -106
app.py CHANGED
@@ -244,112 +244,7 @@ def process_and_generate(image_input, image_path_from_state, sidebar_prompt, hea
244
  return layout_preview, final_preview, final_code, layout_code, final_code, gr.update(value=package_url, visible=True)
245
 
246
 
247
- with gr.Blocks(theme=gr.themes.soft(), css="""
248
- @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
249
-
250
- * {
251
- font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
252
- }
253
-
254
- h1, h2, h3, h4, h5, h6 {
255
- font-weight: 600 !important;
256
- color: #1f2937 !important;
257
- letter-spacing: -0.025em !important;
258
- }
259
-
260
- h1 {
261
- font-size: 2.25rem !important;
262
- font-weight: 700 !important;
263
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
264
- -webkit-background-clip: text;
265
- -webkit-text-fill-color: transparent;
266
- background-clip: text;
267
- margin-bottom: 1.5rem !important;
268
- }
269
-
270
- h2 {
271
- font-size: 1.5rem !important;
272
- font-weight: 600 !important;
273
- color: #374151 !important;
274
- margin-bottom: 1rem !important;
275
- }
276
-
277
- .gr-button {
278
- font-weight: 500 !important;
279
- border-radius: 8px !important;
280
- transition: all 0.2s ease !important;
281
- }
282
-
283
- .gr-button:hover {
284
- transform: translateY(-1px) !important;
285
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
286
- }
287
-
288
- .gr-textbox, .gr-slider {
289
- border-radius: 8px !important;
290
- }
291
-
292
- .gr-textbox input, .gr-textbox textarea {
293
- font-family: 'Inter', sans-serif !important;
294
- font-size: 14px !important;
295
- }
296
-
297
- .gr-slider {
298
- font-family: 'Inter', sans-serif !important;
299
- }
300
-
301
- .gr-tabs {
302
- border-radius: 12px !important;
303
- overflow: hidden !important;
304
- }
305
-
306
- .gr-tab-nav {
307
- background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
308
- }
309
-
310
- .gr-tab-nav button {
311
- font-weight: 500 !important;
312
- color: #64748b !important;
313
- transition: all 0.2s ease !important;
314
- }
315
-
316
- .gr-tab-nav button.selected {
317
- color: #3b82f6 !important;
318
- background: white !important;
319
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
320
- }
321
-
322
- .gr-accordion {
323
- border-radius: 8px !important;
324
- border: 1px solid #e5e7eb !important;
325
- }
326
-
327
- .gr-accordion-header {
328
- font-weight: 500 !important;
329
- color: #374151 !important;
330
- }
331
-
332
- .gr-markdown {
333
- font-family: 'Inter', sans-serif !important;
334
- line-height: 1.6 !important;
335
- }
336
-
337
- .gr-markdown strong {
338
- color: #059669 !important;
339
- font-weight: 600 !important;
340
- }
341
-
342
- .gr-examples {
343
- border-radius: 12px !important;
344
- border: 1px solid #e5e7eb !important;
345
- background: #f9fafb !important;
346
- }
347
-
348
- .gr-examples-header {
349
- font-weight: 600 !important;
350
- color: #374151 !important;
351
- }
352
- """) as demo:
353
  gr.Markdown("# ScreenCoder: Screenshot to Code")
354
  with gr.Row():
355
  with gr.Column(scale=1):
 
244
  return layout_preview, final_preview, final_code, layout_code, final_code, gr.update(value=package_url, visible=True)
245
 
246
 
247
+ with gr.Blocks(theme=gr.themes.soft()) as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
  gr.Markdown("# ScreenCoder: Screenshot to Code")
249
  with gr.Row():
250
  with gr.Column(scale=1):