ShashwatStable commited on
Commit
8b60ac4
·
verified ·
1 Parent(s): 0397c07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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","text","text",gr.Slider(1,10,1.0)],outputs="gallery")
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__":