Norod78 commited on
Commit
eeb0f60
·
verified ·
1 Parent(s): f314420

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -129,14 +129,17 @@ article = "<hr><p style='text-align: center'>See the <a href='https://github.com
129
 
130
  examples=[['Example00001.jpg'],['Example00002.jpg'],['Example00003.jpg'],['Example00004.jpg'],['Example00005.jpg'], ['Example00006.jpg']]
131
 
132
- gr.Interface(
133
  inference,
134
- gr.inputs.Image(type="pil", label="Input"),
135
- gr.outputs.Image(type="pil", label="Output"),
136
  title=title,
137
  description=description,
138
  article=article,
139
  examples=examples,
140
  enable_queue=True,
141
  allow_flagging=False
142
- ).launch()
 
 
 
 
129
 
130
  examples=[['Example00001.jpg'],['Example00002.jpg'],['Example00003.jpg'],['Example00004.jpg'],['Example00005.jpg'], ['Example00006.jpg']]
131
 
132
+ demo = gr.Interface(
133
  inference,
134
+ inputs=[gr.Image(type="pil", label="Input")],
135
+ outputs=[gr.Image(type="pil", label="Output")],
136
  title=title,
137
  description=description,
138
  article=article,
139
  examples=examples,
140
  enable_queue=True,
141
  allow_flagging=False
142
+ )
143
+
144
+ demo.queue()
145
+ demo.launch()