majedk01 commited on
Commit
6648eec
·
verified ·
1 Parent(s): d0673bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -32,6 +32,7 @@ def generate_image(prompt, model_choice, translate=False):
32
  prompt = translate_text(prompt, target_language='en') # Assuming you want to translate to English
33
  model_urls = {
34
  "Stable Diffusion v1.5": "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5",
 
35
 
36
  }
37
  API_URL = model_urls[model_choice]
@@ -71,7 +72,7 @@ iface = gr.Interface(
71
  fn=generate_image,
72
  inputs=[
73
  gr.components.Textbox(lines=2, placeholder="Enter the description of the image here..."),
74
- gr.components.Dropdown(choices=["Stable Diffusion v1.5",], label="Choose Model", value='Stable Diffusion v1.5'),
75
  gr.components.Checkbox(label="Translate The Text Before Generating Image", value=False)
76
  ],
77
  outputs=gr.components.Image(),
 
32
  prompt = translate_text(prompt, target_language='en') # Assuming you want to translate to English
33
  model_urls = {
34
  "Stable Diffusion v1.5": "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5",
35
+ "stable_diffusion_arbert": "https://api-inference.huggingface.co/models/majedk01/stable_diffusion_arbert",
36
 
37
  }
38
  API_URL = model_urls[model_choice]
 
72
  fn=generate_image,
73
  inputs=[
74
  gr.components.Textbox(lines=2, placeholder="Enter the description of the image here..."),
75
+ gr.components.Dropdown(choices=["Stable Diffusion v1.5","stable_diffusion_arbert"], label="Choose Model", value='Stable Diffusion v1.5'),
76
  gr.components.Checkbox(label="Translate The Text Before Generating Image", value=False)
77
  ],
78
  outputs=gr.components.Image(),