ritwikraha commited on
Commit
547d326
1 Parent(s): 4d7cedd

chore: fixing gradio components

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -39,9 +39,15 @@ def generate_sketch(prompt, negative_prompt="ugly face, multiple bodies, bad ana
39
  )
40
  return result.images[0].convert("RGB") # Ensure the image is in RGB format
41
 
 
 
 
 
42
  # Setup Gradio interface
43
  with gr.Blocks() as demo:
44
- with gr.Column():
 
 
45
  prompt_input = gr.Textbox(label="Enter your image prompt", value="a sketch of TOK khabib pointing at another khabib like the spiderman meme, monchrome, pen sketch")
46
  negative_prompt_input = gr.Textbox(label="Enter negative prompt", value="ugly face, multiple bodies, bad anatomy, disfigured, extra fingers", lines=2)
47
  guidance_scale_slider = gr.Slider(label="Guidance Scale", minimum=1, maximum=5, value=3)
 
39
  )
40
  return result.images[0].convert("RGB") # Ensure the image is in RGB format
41
 
42
+ # Gradio Interface
43
+ description = """
44
+ This demo utilizes the SDXL model LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0. The weights were trained on sketches of Khabib by ritwikraha using DreamBooth.
45
+ """
46
  # Setup Gradio interface
47
  with gr.Blocks() as demo:
48
+ gr.HTML("<h1><center>Text-to-Image with SDXL-Lightning ⚡</center></h1>")
49
+ gr.Markdown(description)
50
+ with gr.Row():
51
  prompt_input = gr.Textbox(label="Enter your image prompt", value="a sketch of TOK khabib pointing at another khabib like the spiderman meme, monchrome, pen sketch")
52
  negative_prompt_input = gr.Textbox(label="Enter negative prompt", value="ugly face, multiple bodies, bad anatomy, disfigured, extra fingers", lines=2)
53
  guidance_scale_slider = gr.Slider(label="Guidance Scale", minimum=1, maximum=5, value=3)