Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ with gr.Blocks() as demo:
|
|
41 |
sketchpad_output = gr.Image(label="Your Sketch")
|
42 |
recognized_text = gr.Textbox(label="Recognized Text")
|
43 |
|
44 |
-
sketchpad.
|
45 |
recognize_text, inputs=sketchpad_output, outputs=recognized_text
|
46 |
)
|
47 |
|
|
|
41 |
sketchpad_output = gr.Image(label="Your Sketch")
|
42 |
recognized_text = gr.Textbox(label="Recognized Text")
|
43 |
|
44 |
+
sketchpad.change(display_sketch, inputs=sketchpad, outputs=sketchpad_output).then(
|
45 |
recognize_text, inputs=sketchpad_output, outputs=recognized_text
|
46 |
)
|
47 |
|