Update app.py
Browse files55 unmodified lines565758596061622 unmodified lines6566676869707155 unmodified linesout = grayreturn cv2.cvtColor(out, cv2.COLOR_BGR2RGB)demo = gr.Interface(fn=process,2 unmodified linesgr.Dropdown(["Sketch", "Embroidery", "Cartoon"], label="Mode"),gr.Slider(3, 50, value=9, step=1, label="Strength")],outputs=gr.Image(type="numpy", label="Result"),title="🧵 Sketch Converter Studio",description="Convert images into sketch, embroidery line art, or cartoon styles.")55 unmodified lines565758596061626364656667682 unmodified lines7172737475767778798055 unmodified linesout = grayreturn cv2.cvtColor(out, cv2.COLOR_BGR2RGB)temp_file = tempfile.NamedTemporaryFile(suffix=".png", delete=False)cv2.imwrite(temp_file.name, out)preview = cv2.cvtColor(out, cv2.COLOR_BGR2RGB)return preview, temp_file.namedemo = gr.Interface(fn=process,2 unmodified linesgr.Dropdown(["Sketch", "Embroidery", "Cartoon"], label="Mode"),gr.Slider(3, 50, value=9, step=1, label="Strength")],outputs=[gr.Image(label="Result"),gr.File(label="Download PNG")]title="🧵 Sketch Converter Studio",description="Convert images into sketch, embroidery line art, or cartoon styles.")
app.py+11-2