MrInvincible96 commited on
Commit
3ea62ee
·
verified ·
1 Parent(s): f5748b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -688,7 +688,7 @@ def generate_documents(notes):
688
 
689
  return brd, stories, before_after
690
 
691
- with gr.Blocks(css=CUSTOM_CSS, theme=gr.themes.Base()) as demo:
692
  gr.HTML("""
693
  <div class="hero-shell">
694
  <div class="hero-inner">
@@ -758,16 +758,16 @@ with gr.Blocks(css=CUSTOM_CSS, theme=gr.themes.Base()) as demo:
758
  generate_btn = gr.Button("Generate Deliverables", variant="primary")
759
  clear_btn = gr.Button("Clear Input", variant="secondary")
760
 
761
- gr.Examples(
762
- examples=[
763
- ["Customers are abandoning carts before payment. They want easier checkout, UPI, cards, wallets, mobile-friendly pages, guest checkout, and fewer support issues."],
764
- ["Hospital reception staff say patient registration is slow. They want OTP verification, fewer manual steps, tablet support, and a simple dashboard for receptionists."],
765
- ["Users find login confusing. Stakeholders want optional sign-in where possible, a simpler user flow, faster completion, and fewer helpdesk calls."]
766
- ],
767
- inputs=notes_input,
768
- label="Sample Business Scenarios",
769
- elem_classes="ba-examples"
770
- )
771
 
772
  gr.HTML("</div></div>")
773
 
@@ -813,4 +813,4 @@ with gr.Blocks(css=CUSTOM_CSS, theme=gr.themes.Base()) as demo:
813
  outputs=[notes_input, brd_output, stories_output, before_after_output]
814
  )
815
 
816
- demo.launch()
 
688
 
689
  return brd, stories, before_after
690
 
691
+ with gr.Blocks() as demo:
692
  gr.HTML("""
693
  <div class="hero-shell">
694
  <div class="hero-inner">
 
758
  generate_btn = gr.Button("Generate Deliverables", variant="primary")
759
  clear_btn = gr.Button("Clear Input", variant="secondary")
760
 
761
+ with gr.Column(elem_classes="ba-examples"):
762
+ gr.Examples(
763
+ examples=[
764
+ ["Customers are abandoning carts before payment. They want easier checkout, UPI, cards, wallets, mobile-friendly pages, guest checkout, and fewer support issues."],
765
+ ["Hospital reception staff say patient registration is slow. They want OTP verification, fewer manual steps, tablet support, and a simple dashboard for receptionists."],
766
+ ["Users find login confusing. Stakeholders want optional sign-in where possible, a simpler user flow, faster completion, and fewer helpdesk calls."]
767
+ ],
768
+ inputs=notes_input,
769
+ label="Sample Business Scenarios"
770
+ )
771
 
772
  gr.HTML("</div></div>")
773
 
 
813
  outputs=[notes_input, brd_output, stories_output, before_after_output]
814
  )
815
 
816
+ demo.launch(css=CUSTOM_CSS, theme=gr.themes.Base())