Spaces:
Runtime error
Runtime error
ritwikraha
commited on
Commit
β’
913b2fe
1
Parent(s):
5c058da
fixes
Browse files
app.py
CHANGED
@@ -47,16 +47,15 @@ This demo utilizes the SDXL model LoRA adaption weights for stabilityai/stable-d
|
|
47 |
with gr.Blocks() as demo:
|
48 |
gr.HTML("<h1><center>Khabib Sketch Maker π₯</center></h1>")
|
49 |
gr.Markdown(description)
|
50 |
-
with gr.
|
51 |
-
with gr.
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
output_image = gr.Image(label="Generated Sketch")
|
60 |
|
61 |
submit_button.click(
|
62 |
fn=generate_sketch,
|
|
|
47 |
with gr.Blocks() as demo:
|
48 |
gr.HTML("<h1><center>Khabib Sketch Maker π₯</center></h1>")
|
49 |
gr.Markdown(description)
|
50 |
+
with gr.Row():
|
51 |
+
with gr.Column():
|
52 |
+
prompt_input = gr.Textbox(label="Enter your image prompt", value="a sketch of TOK khabib dancing, monchrome, pen sketch", scale=8)
|
53 |
+
negative_prompt_input = gr.Textbox(label="Enter negative prompt", value="ugly face, multiple bodies, bad anatomy, disfigured, extra fingers", lines=2)
|
54 |
+
guidance_scale_slider = gr.Slider(label="Guidance Scale", minimum=1, maximum=5, value=3)
|
55 |
+
steps_slider = gr.Slider(label="Number of Inference Steps", minimum=20, maximum=100, value=50)
|
56 |
+
submit_button = gr.Button("Submit")
|
57 |
+
with gr.Column():
|
58 |
+
output_image = gr.Image(label="Generated Sketch")
|
|
|
59 |
|
60 |
submit_button.click(
|
61 |
fn=generate_sketch,
|