anzorq commited on
Commit
d71d9d6
1 Parent(s): 342c62c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -141,7 +141,7 @@ with gr.Blocks(css=css) as demo:
141
  model = gr.Dropdown(label="Model", choices=models, value=models[0])
142
  prompt = gr.Textbox(label="Prompt", placeholder="Style prefix is applied automatically")
143
  with gr.Accordion("Image to image (optional)", open=False):
144
- image = gr.Image(label="Image", height=256, tool="editor")
145
  strength = gr.Slider(label="Strength", minimum=0, maximum=1, step=0.01, value=0.75)
146
 
147
  with gr.Accordion("Advanced options", open=False):
@@ -162,7 +162,7 @@ with gr.Blocks(css=css) as demo:
162
  [models[4], "portrait of a beautiful alyx vance half life", 10, 50],
163
  [models[5], "Aloy from Horizon: Zero Dawn, half body portrait, smooth, detailed armor, beautiful face, illustration", 7, 45],
164
  [models[4], "fantasy portrait painting, digital art", 4, 30],
165
- ], [model, prompt, guidance, steps], image_out, text_inference, cache_examples=torch.cuda.is_available())
166
  gr.HTML('''
167
  <div>
168
  <p>Model by <a href="https://huggingface.co/nitrosocke" target="_blank">@nitrosocke</a> ❤️</p>
 
141
  model = gr.Dropdown(label="Model", choices=models, value=models[0])
142
  prompt = gr.Textbox(label="Prompt", placeholder="Style prefix is applied automatically")
143
  with gr.Accordion("Image to image (optional)", open=False):
144
+ image = gr.Image(label="Image", height=256, tool="editor", type="pil")
145
  strength = gr.Slider(label="Strength", minimum=0, maximum=1, step=0.01, value=0.75)
146
 
147
  with gr.Accordion("Advanced options", open=False):
 
162
  [models[4], "portrait of a beautiful alyx vance half life", 10, 50],
163
  [models[5], "Aloy from Horizon: Zero Dawn, half body portrait, smooth, detailed armor, beautiful face, illustration", 7, 45],
164
  [models[4], "fantasy portrait painting, digital art", 4, 30],
165
+ ], [model, prompt, guidance, steps], image_out, text_inference, cache_examples=False)#torch.cuda.is_available())
166
  gr.HTML('''
167
  <div>
168
  <p>Model by <a href="https://huggingface.co/nitrosocke" target="_blank">@nitrosocke</a> ❤️</p>