bzk9x commited on
Commit
65d00aa
1 Parent(s): 685131b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -6,7 +6,7 @@ from diffusers import DiffusionPipeline
6
  import torch
7
 
8
  device = "cuda" if torch.cuda.is_available() else "cpu"
9
- model_repo_id = "stabilityai/sdxl-emoji" # Updated to use the sdxl-emoji model
10
 
11
  if torch.cuda.is_available():
12
  torch_dtype = torch.float16
@@ -101,7 +101,7 @@ with gr.Blocks(css=css) as demo:
101
  minimum=256,
102
  maximum=MAX_IMAGE_SIZE,
103
  step=32,
104
- value=512, # Adjusted to a typical emoji size
105
  )
106
 
107
  height = gr.Slider(
@@ -109,7 +109,7 @@ with gr.Blocks(css=css) as demo:
109
  minimum=256,
110
  maximum=MAX_IMAGE_SIZE,
111
  step=32,
112
- value=512, # Adjusted to a typical emoji size
113
  )
114
 
115
  with gr.Row():
@@ -118,7 +118,7 @@ with gr.Blocks(css=css) as demo:
118
  minimum=0.0,
119
  maximum=10.0,
120
  step=0.1,
121
- value=7.5, # Adjusted for more focused generation
122
  )
123
 
124
  num_inference_steps = gr.Slider(
@@ -126,7 +126,7 @@ with gr.Blocks(css=css) as demo:
126
  minimum=1,
127
  maximum=50,
128
  step=1,
129
- value=25, # Adjusted for better quality generation
130
  )
131
 
132
  gr.Examples(examples=examples, inputs=[prompt])
 
6
  import torch
7
 
8
  device = "cuda" if torch.cuda.is_available() else "cpu"
9
+ model_repo_id = "fofr/sdxl-emoji"
10
 
11
  if torch.cuda.is_available():
12
  torch_dtype = torch.float16
 
101
  minimum=256,
102
  maximum=MAX_IMAGE_SIZE,
103
  step=32,
104
+ value=512,
105
  )
106
 
107
  height = gr.Slider(
 
109
  minimum=256,
110
  maximum=MAX_IMAGE_SIZE,
111
  step=32,
112
+ value=512,
113
  )
114
 
115
  with gr.Row():
 
118
  minimum=0.0,
119
  maximum=10.0,
120
  step=0.1,
121
+ value=7.5,
122
  )
123
 
124
  num_inference_steps = gr.Slider(
 
126
  minimum=1,
127
  maximum=50,
128
  step=1,
129
+ value=25,
130
  )
131
 
132
  gr.Examples(examples=examples, inputs=[prompt])