Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,8 @@
|
|
1 |
-
import os
|
2 |
import numpy as np
|
3 |
-
import cv2
|
4 |
import base64
|
5 |
import gradio as gr
|
6 |
from tensorflow import keras
|
|
|
7 |
|
8 |
# Load the model
|
9 |
model_path = 'sketch2draw_model.h5' # Update with your model path
|
@@ -33,7 +32,7 @@ with gr.Blocks() as demo:
|
|
33 |
|
34 |
with gr.Row():
|
35 |
with gr.Column():
|
36 |
-
canvas = gr.Sketchpad(
|
37 |
brush_color = gr.ColorPicker(value="black", label="Brush Color")
|
38 |
clear_btn = gr.Button("Clear")
|
39 |
|
|
|
|
|
1 |
import numpy as np
|
|
|
2 |
import base64
|
3 |
import gradio as gr
|
4 |
from tensorflow import keras
|
5 |
+
import cv2
|
6 |
|
7 |
# Load the model
|
8 |
model_path = 'sketch2draw_model.h5' # Update with your model path
|
|
|
32 |
|
33 |
with gr.Row():
|
34 |
with gr.Column():
|
35 |
+
canvas = gr.Sketchpad(label="Draw Here", tool="brush")
|
36 |
brush_color = gr.ColorPicker(value="black", label="Brush Color")
|
37 |
clear_btn = gr.Button("Clear")
|
38 |
|