Update app.py
Browse files
app.py
CHANGED
|
@@ -179,7 +179,7 @@ with gr.Blocks() as demo:
|
|
| 179 |
image_mode="L",
|
| 180 |
height=280,
|
| 181 |
width=280,
|
| 182 |
-
|
| 183 |
invert_colors=True, # Membalik warna: latar hitam, coretan putih
|
| 184 |
brush=gr.Brush(default_color="rgb(0,0,0)", color_mode="fixed") # Kuas hitam (akan dibalik jadi putih)
|
| 185 |
)
|
|
|
|
| 179 |
image_mode="L",
|
| 180 |
height=280,
|
| 181 |
width=280,
|
| 182 |
+
sources="canvas", # Mengaktifkan mode kanvas untuk menggambar
|
| 183 |
invert_colors=True, # Membalik warna: latar hitam, coretan putih
|
| 184 |
brush=gr.Brush(default_color="rgb(0,0,0)", color_mode="fixed") # Kuas hitam (akan dibalik jadi putih)
|
| 185 |
)
|