Liori25 commited on
Commit
a87eaf7
·
verified ·
1 Parent(s): ce47459

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -353,8 +353,8 @@ with gr.Blocks(title="CookBook") as demo:
353
  input_img = gr.Image(type="filepath", label="Upload Recipe", height=250, container=False)
354
 
355
  gr.HTML("<div style='height:15px'></div>")
356
- magic_btn = gr.Button("✨ Convert to Text", variant="primary")
357
 
 
358
  gr.Examples(
359
  examples=[
360
  ["quick_tries_images/applecrisp.jpg"],
@@ -363,6 +363,11 @@ with gr.Blocks(title="CookBook") as demo:
363
  ],
364
  inputs=input_img, label="Quick Try (Click to load):"
365
  )
 
 
 
 
 
366
 
367
  # SECTION B: TEXT OUTPUT
368
  with gr.Group(elem_classes=["fb-card"]):
@@ -515,5 +520,4 @@ with gr.Blocks(title="CookBook") as demo:
515
  nav_about.click(go_about, None, outputs_ui)
516
 
517
  if __name__ == "__main__":
518
- # Parameters passed here to avoid Warning
519
  demo.launch(theme=theme, css=facebook_css)
 
353
  input_img = gr.Image(type="filepath", label="Upload Recipe", height=250, container=False)
354
 
355
  gr.HTML("<div style='height:15px'></div>")
 
356
 
357
+ # 1. Quick Start Images (MOVED HERE)
358
  gr.Examples(
359
  examples=[
360
  ["quick_tries_images/applecrisp.jpg"],
 
363
  ],
364
  inputs=input_img, label="Quick Try (Click to load):"
365
  )
366
+
367
+ gr.HTML("<div style='height:10px'></div>")
368
+
369
+ # 2. Convert Button (MOVED HERE)
370
+ magic_btn = gr.Button("✨ Convert to Text", variant="primary")
371
 
372
  # SECTION B: TEXT OUTPUT
373
  with gr.Group(elem_classes=["fb-card"]):
 
520
  nav_about.click(go_about, None, outputs_ui)
521
 
522
  if __name__ == "__main__":
 
523
  demo.launch(theme=theme, css=facebook_css)