lalashechka commited on
Commit
3a1dbf3
1 Parent(s): ccd1bf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -164,6 +164,7 @@ def mirror(image_output, scale_by, method, gfpgan, codeformer):
164
  print(r.text)
165
  print(r.json()['data'][0][0]['name'])
166
  ph = "https://darkstorm2150-protogen-web-ui.hf.space/file=" + str(r.json()['data'][0][0]['name'])
 
167
  return ph
168
 
169
  css = """
@@ -228,7 +229,7 @@ with gr.Blocks(css=css) as demo:
228
  text_button.click(flip_text, inputs=[prompt, negative_prompt, task, steps, sampler, cfg_scale, seed], outputs=image_output, concurrency_limit=10)
229
 
230
  img2img_b = gr.Button("Увеличить изображение", variant='secondary')
231
- image_i2i = gr.Image(show_label=True, label='Увеличенное изображение:')
232
  img2img_b.click(mirror, inputs=[image_output, scale_by, method, gfpgan, codeformer], outputs=image_i2i, concurrency_limit=10)
233
 
234
  demo.launch()
 
164
  print(r.text)
165
  print(r.json()['data'][0][0]['name'])
166
  ph = "https://darkstorm2150-protogen-web-ui.hf.space/file=" + str(r.json()['data'][0][0]['name'])
167
+ print(ph)
168
  return ph
169
 
170
  css = """
 
229
  text_button.click(flip_text, inputs=[prompt, negative_prompt, task, steps, sampler, cfg_scale, seed], outputs=image_output, concurrency_limit=10)
230
 
231
  img2img_b = gr.Button("Увеличить изображение", variant='secondary')
232
+ image_i2i = gr.Image(show_label=True, label='Увеличенное изображение:', type='filepath')
233
  img2img_b.click(mirror, inputs=[image_output, scale_by, method, gfpgan, codeformer], outputs=image_i2i, concurrency_limit=10)
234
 
235
  demo.launch()