Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ def prompt(pos,hei,wid,no):
|
|
11 |
"inputs": {
|
12 |
"input_text": f"{pos} (clear image: 1.1), (clean image: 1.1), (high contrast: 1.2), (colorful: 1.2), (vibrant: 1.1), ((midlength)) ",
|
13 |
"Negative": "worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, artist name,text, watermark,(Low quality , blurred , bad hands ,diffused body, ugly face , worst quality, low quality, normal quality, painting, drawing, monochrome, grayscale, bad anatomy, bad proportions, signature, watermark)",
|
14 |
-
"Width ": wid,
|
15 |
-
"Height ": hei,
|
16 |
"Batch": "",
|
17 |
}
|
18 |
}
|
@@ -45,7 +45,7 @@ def prompt(pos,hei,wid,no):
|
|
45 |
|
46 |
with gr.Blocks() as iface:
|
47 |
|
48 |
-
gr.Interface(fn=prompt, inputs=["text",
|
49 |
|
50 |
|
51 |
if __name__ == "__main__":
|
|
|
11 |
"inputs": {
|
12 |
"input_text": f"{pos} (clear image: 1.1), (clean image: 1.1), (high contrast: 1.2), (colorful: 1.2), (vibrant: 1.1), ((midlength)) ",
|
13 |
"Negative": "worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, artist name,text, watermark,(Low quality , blurred , bad hands ,diffused body, ugly face , worst quality, low quality, normal quality, painting, drawing, monochrome, grayscale, bad anatomy, bad proportions, signature, watermark)",
|
14 |
+
"Width ": f"{wid}",
|
15 |
+
"Height ": f"{hei}",
|
16 |
"Batch": "",
|
17 |
}
|
18 |
}
|
|
|
45 |
|
46 |
with gr.Blocks() as iface:
|
47 |
|
48 |
+
gr.Interface(fn=prompt, inputs=["text",gr.Slider(1,1024,step=8.0),gr.Slider(1,1024,step=8.0),gr.Slider(1,10,step=1.0))],outputs="gallery")
|
49 |
|
50 |
|
51 |
if __name__ == "__main__":
|