Pijush2023 commited on
Commit
d15ef34
·
verified ·
1 Parent(s): 8ea3b6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -513,7 +513,7 @@ def generate_image(prompt):
513
  prompt,
514
  negative_prompt="",
515
  num_inference_steps=28,
516
- guidance_scale=7.0,
517
  ).images[0]
518
  return image
519
 
@@ -524,11 +524,15 @@ hardcoded_prompt = "A cat holding a sign that says hello world"
524
  with gr.Blocks(theme='rawrsor1/Everforest') as demo:
525
  with gr.Row():
526
  chatbot = gr.Chatbot([], elem_id="chatbot", bubble_full_width=False)
527
-
528
- with gr.Column():
 
 
 
 
529
  weather_output = gr.HTML(value=fetch_local_weather())
530
 
531
- with gr.Column():
532
  news_output = gr.HTML(value=fetch_local_news())
533
 
534
  def setup_ui():
 
513
  prompt,
514
  negative_prompt="",
515
  num_inference_steps=28,
516
+ guidance_scale=3.0,
517
  ).images[0]
518
  return image
519
 
 
524
  with gr.Blocks(theme='rawrsor1/Everforest') as demo:
525
  with gr.Row():
526
  chatbot = gr.Chatbot([], elem_id="chatbot", bubble_full_width=False)
527
+
528
+ with gr.Column(scale=5):
529
+ gr.Markdown("<h1>Generated Image</h1>", elem_id="image-markdown")
530
+ image_output = gr.Image(value=generate_image(hardcoded_prompt))
531
+
532
+ with gr.Column(scale=8):
533
  weather_output = gr.HTML(value=fetch_local_weather())
534
 
535
+ with gr.Column(scale=5):
536
  news_output = gr.HTML(value=fetch_local_news())
537
 
538
  def setup_ui():