majedk01 commited on
Commit
66e37f6
1 Parent(s): 406ddd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -38,7 +38,6 @@ def generate_image(prompt, model_choice, translate=False):
38
  "LCM_Dreamshaper_v7": "https://api-inference.huggingface.co/models/SimianLuo/LCM_Dreamshaper_v7",
39
 
40
 
41
-
42
  }
43
  API_URL = model_urls[model_choice]
44
 
@@ -77,8 +76,8 @@ iface = gr.Interface(
77
  fn=generate_image,
78
  inputs=[
79
  gr.components.Textbox(lines=2, placeholder="Enter the description of the image here..."),
80
- gr.components.Dropdown(choices=["Stable Diffusion v1.5","dalle-3-xl-v2","midjourney-v6","openjourney-v4","LCM_Dreamshaper_v7"], label="Choose Model", value='Stable Diffusion v1.5'),
81
-
82
  ],
83
  outputs=gr.components.Image(),
84
  title=title,
 
38
  "LCM_Dreamshaper_v7": "https://api-inference.huggingface.co/models/SimianLuo/LCM_Dreamshaper_v7",
39
 
40
 
 
41
  }
42
  API_URL = model_urls[model_choice]
43
 
 
76
  fn=generate_image,
77
  inputs=[
78
  gr.components.Textbox(lines=2, placeholder="Enter the description of the image here..."),
79
+ gr.components.Dropdown(choices=["Stable Diffusion v1.5","dalle-3-xl-v2","midjourney-v6","openjourney-v4","LCM_Dreamshaper_v7",], label="Choose Model", value='Stable Diffusion v1.5'),
80
+ gr.components.Checkbox(label="Translate The Text Before Generating Image", value=False)
81
  ],
82
  outputs=gr.components.Image(),
83
  title=title,