0xSynapse commited on
Commit
51180fd
1 Parent(s): daf5247

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -54,10 +54,10 @@ description = "Gradio Demo for Artistic Neural Style Transfer. To use it, simply
54
  article = "</br><p style='text-align: center'><a href='https://github.com/0xsynapse' target='_blank'>GitHub</a></p> "
55
 
56
 
57
- content_input = gr.inputs.Image(label="Upload Your Image ",)
58
- style_input = gr.inputs.Image( label="Upload Style Image ",shape= (256,256), )
59
- style_slider = gr.inputs.Slider(0,2,label="Adjust Style Density" ,default=1,)
60
- content_slider = gr.inputs.Slider(1,5,label="Content Sharpness" ,default=1,)
61
  # style_checkbox = gr.Checkbox(value=False,label="Tune Style(experimental)")
62
 
63
 
@@ -73,12 +73,11 @@ interface = gr.Interface(fn=style_transfer,
73
  content_slider,
74
  # style_checkbox
75
  ],
76
- outputs=gr.outputs.Image(type="pil"),
77
  title=title,
78
  description=description,
79
  article=article,
80
  examples=examples,
81
- enable_queue=True
82
  )
83
 
84
 
 
54
  article = "</br><p style='text-align: center'><a href='https://github.com/0xsynapse' target='_blank'>GitHub</a></p> "
55
 
56
 
57
+ content_input = gr.Image(label="Upload Your Image ",)
58
+ style_input = gr.Image( label="Upload Style Image ",)
59
+ style_slider = gr.Slider(0,2,label="Adjust Style Density" , value=1,)
60
+ content_slider = gr.Slider(1,5,label="Content Sharpness" , value=1,)
61
  # style_checkbox = gr.Checkbox(value=False,label="Tune Style(experimental)")
62
 
63
 
 
73
  content_slider,
74
  # style_checkbox
75
  ],
76
+ outputs=gr.Image(type="pil"),
77
  title=title,
78
  description=description,
79
  article=article,
80
  examples=examples,
 
81
  )
82
 
83