Dagfinn1962 commited on
Commit
67a318f
1 Parent(s): 056b501

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -4,10 +4,15 @@ import sys
4
  from pathlib import Path
5
 
6
  # https://huggingface.co/CompVis/stable-diffusion-v1-4
 
 
7
 
8
  models = [
9
- {"name": "Stable Diffusion 1.4","url": "CompVis/stable-diffusion-v1-4"},
10
- {"name": "Stable Diffusion 1.5","url": "runwayml/stable-diffusion-v1-5"},
 
 
 
11
  ]
12
 
13
  current_model = models[0]
@@ -43,7 +48,7 @@ with gr.Blocks (css = 'main.css') as myface:
43
  input_text = gr.Textbox(label=" ",placeholder="1.PROMPT IDEA HERE ! ",lines=4)
44
  # Model selection dropdown
45
  model_name1 = gr.Dropdown(
46
- label=" ",
47
  choices=[m["name"] for m in models],
48
  type="index",
49
  value=current_model["name"],
@@ -52,8 +57,8 @@ with gr.Blocks (css = 'main.css') as myface:
52
 
53
  )
54
  with gr.Row():
55
- see_prompts = gr.Button("2. GENERATE YOUR PROMT IDEA HERE!")
56
- run = gr.Button("3. GENERATE THE IMAGE HERE!", varant="primery")
57
 
58
  #
59
  with gr.Row():
 
4
  from pathlib import Path
5
 
6
  # https://huggingface.co/CompVis/stable-diffusion-v1-4
7
+ # stabilityai/stable-diffusion-2-1
8
+ "https://huggingface.co/stabilityai/stable-diffusion-2-1-unclip"
9
 
10
  models = [
11
+ {"name": "SD ComVis 1.2","url": "CompVis/stable-diffusion-v1-2"},
12
+ {"name": "SD Comvis 1.4","url": "CompVis/stable-diffusion-v1-4"},
13
+ {"name": "SD runawayml 1.5","url": "runwayml/stable-diffusion-v1-5"},
14
+ {"name": "SD Stability 2.1","url": "stabilityai/stable-diffusion-2-1"},
15
+ {"name": "SD Stability 2.1 Unclip","url": "stabilityai/stable-diffusion-2-1-unclip"},
16
  ]
17
 
18
  current_model = models[0]
 
48
  input_text = gr.Textbox(label=" ",placeholder="1.PROMPT IDEA HERE ! ",lines=4)
49
  # Model selection dropdown
50
  model_name1 = gr.Dropdown(
51
+ label="2 Choose model here",
52
  choices=[m["name"] for m in models],
53
  type="index",
54
  value=current_model["name"],
 
57
 
58
  )
59
  with gr.Row():
60
+ see_prompts = gr.Button("3. GENERATE YOUR PROMT IDEA HERE!")
61
+ run = gr.Button("4. GENERATE THE IMAGE HERE!", varant="primery")
62
 
63
  #
64
  with gr.Row():