EnigmaOfTheWorld commited on
Commit
15e859b
·
1 Parent(s): 8c2723b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -408,7 +408,7 @@ with gr.Blocks(theme="Ajaxon6255/Emerald_Isle") as demo:
408
 
409
  with gr.Column():
410
  text2imge_op = gr.Image(type="pil")
411
- text2image_cfg = gr.Slider(label="Cfg Scale",mimimum=0,maximum=8,value=7.0)
412
  text2imge_model = gr.Dropdown(label="Engine",choices=ENGINE_MODELS,value='stable-diffusion-xl-beta-v2-2-2')
413
  # op2 = gr.Image()
414
  gr.HTML(value="<img id='textImage' src='https://i.ibb.co/6wDWhvd/2.png' alt='Generate knowlwdge graph' width='1200' height='300' style='border: 2px solid #fff;'/>")
@@ -456,7 +456,7 @@ with gr.Blocks(theme="Ajaxon6255/Emerald_Isle") as demo:
456
 
457
  with gr.Column():
458
  depth2image_op = gr.Image()#type="pil")
459
- depth2image_inference_steps = gr.Slider(label="Inference Steps",mimimum=1,maximum=500,value=50,step=1)#204
460
  depth2image_scheduler = gr.Dropdown(label="Scheduler",choices=['DDIM','K_EULER','DPMSolverMultistep','K_EULER_ANCESTRAL','PNDM','KLMS'],value='DPMSolverMultistep')
461
  gr.HTML(value="<img id='depth_to_image' src='https://i.ibb.co/c2pKpLJ/depth2image.png' alt='Generate knowlwdge graph' width='1200' height='300' style='border: 2px solid #fff;'/>")
462
  gr.HTML(value="<style>#depth_to_image:hover{box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);}</style>")
@@ -484,7 +484,7 @@ with gr.Blocks(theme="Ajaxon6255/Emerald_Isle") as demo:
484
  with gr.Column():
485
  inpainting_mask = gr.Image()
486
  inpainting_op = gr.Image()
487
- inpainting_cfg = gr.Slider(label="Cfg Scale",mimimum=0,maximum=8,value=7.0)
488
  gr.HTML(value="<img id='inpainting' src='https://i.ibb.co/tMPPVTL/inpainting.png' alt='Generate knowlwdge graph' width='1200' height='300' style='border: 2px solid #fff;'/>")
489
  gr.HTML(value="<style>#inpainting:hover{box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);}</style>")
490
  with gr.Row():
 
408
 
409
  with gr.Column():
410
  text2imge_op = gr.Image(type="pil")
411
+ text2image_cfg = gr.Slider(label="CFG Scale",mimimum=0,maximum=8,value=7.0,info="This dictates how closely the engine attempts to match a generation to the provided prompt.")
412
  text2imge_model = gr.Dropdown(label="Engine",choices=ENGINE_MODELS,value='stable-diffusion-xl-beta-v2-2-2')
413
  # op2 = gr.Image()
414
  gr.HTML(value="<img id='textImage' src='https://i.ibb.co/6wDWhvd/2.png' alt='Generate knowlwdge graph' width='1200' height='300' style='border: 2px solid #fff;'/>")
 
456
 
457
  with gr.Column():
458
  depth2image_op = gr.Image()#type="pil")
459
+ depth2image_inference_steps = gr.Slider(label="Inference Steps",mimimum=1,maximum=500,value=50,step=1,info="Higher guidance scale encourages to generate images that are closely linked to the text prompt, usually at the expense of lower image quality.")#204
460
  depth2image_scheduler = gr.Dropdown(label="Scheduler",choices=['DDIM','K_EULER','DPMSolverMultistep','K_EULER_ANCESTRAL','PNDM','KLMS'],value='DPMSolverMultistep')
461
  gr.HTML(value="<img id='depth_to_image' src='https://i.ibb.co/c2pKpLJ/depth2image.png' alt='Generate knowlwdge graph' width='1200' height='300' style='border: 2px solid #fff;'/>")
462
  gr.HTML(value="<style>#depth_to_image:hover{box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);}</style>")
 
484
  with gr.Column():
485
  inpainting_mask = gr.Image()
486
  inpainting_op = gr.Image()
487
+ inpainting_cfg = gr.Slider(label="CFG Scale",mimimum=0,maximum=8,value=7.0,step=1,,info="This dictates how closely the engine attempts to match a generation to the provided prompt.")
488
  gr.HTML(value="<img id='inpainting' src='https://i.ibb.co/tMPPVTL/inpainting.png' alt='Generate knowlwdge graph' width='1200' height='300' style='border: 2px solid #fff;'/>")
489
  gr.HTML(value="<style>#inpainting:hover{box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);}</style>")
490
  with gr.Row():