kfahn commited on
Commit
93eaa44
1 Parent(s): 98bf4bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -3
app.py CHANGED
@@ -113,8 +113,25 @@ title="Image to Coloring Page Generator"
113
  # ['01.jpeg', 'Complex Lines'],
114
  #]
115
 
116
- iface = gr.Interface(predict, [gr.inputs.Image(type='filepath')],
117
- #gr.inputs.Radio(['Complex Lines'], type="value", default='Complex Lines', label='version')],
118
- gr.outputs.Image(type="pil"))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
 
120
  iface.launch()
 
113
  # ['01.jpeg', 'Complex Lines'],
114
  #]
115
 
116
+ image = gr.Image(
117
+ source="canvas",
118
+ tool="sketch",
119
+ type="pil",
120
+ image_mode="L",
121
+ invert_colors=True,
122
+ shape=(1024, 1024),
123
+ brush_radius=4,
124
+ height=440,
125
+ )
126
+
127
+ iface = gr.Interface(predict,
128
+ image,
129
+ #gr.outputs.Image(type="pil"))
130
+ image)
131
+
132
+
133
+ # iface = gr.Interface(predict, [gr.inputs.Image(type='filepath')],
134
+ # #gr.inputs.Radio(['Complex Lines'], type="value", default='Complex Lines', label='version')],
135
+ # gr.outputs.Image(type="pil"))
136
 
137
  iface.launch()