vilarin commited on
Commit
9b5fc32
1 Parent(s): e8b977c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -53,12 +53,11 @@ def generate_image(
53
 
54
  text = str(translator.translate(prompt['text'], 'English'))
55
 
56
-
57
  generator = torch.Generator().manual_seed(seed)
58
 
59
 
60
  image = pipe(
61
- prompt,
62
  height=height,
63
  width=width,
64
  guidance_scale=scale,
@@ -124,9 +123,9 @@ with gr.Blocks(css=CSS, js=JS, theme="soft") as demo:
124
  steps = gr.Slider(
125
  label="Steps",
126
  minimum=1,
127
- maximum=50,
128
  step=1,
129
- value=30,
130
  )
131
  seed = gr.Slider(
132
  label="Seed (-1 Random)",
 
53
 
54
  text = str(translator.translate(prompt['text'], 'English'))
55
 
 
56
  generator = torch.Generator().manual_seed(seed)
57
 
58
 
59
  image = pipe(
60
+ prompt=text,
61
  height=height,
62
  width=width,
63
  guidance_scale=scale,
 
123
  steps = gr.Slider(
124
  label="Steps",
125
  minimum=1,
126
+ maximum=100,
127
  step=1,
128
+ value=50,
129
  )
130
  seed = gr.Slider(
131
  label="Seed (-1 Random)",