Spaces:
Runtime error
Runtime error
333
Browse files
app.py
CHANGED
@@ -19,5 +19,15 @@ def process_sketch(sketch):
|
|
19 |
output2 = (np.argmax(model.predict(img)[0]) % 3)
|
20 |
return output1, output2
|
21 |
|
22 |
-
demo = gr.Interface(fn=process_sketch, inputs="sketchpad", outputs=["text", "text"], title="Распознавание рисунка")
|
23 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
output2 = (np.argmax(model.predict(img)[0]) % 3)
|
20 |
return output1, output2
|
21 |
|
22 |
+
#demo = gr.Interface(fn=process_sketch, inputs="sketchpad", outputs=["text", "text"], title="Распознавание рисунка")
|
23 |
+
#demo.launch()
|
24 |
+
|
25 |
+
iface = gr.Interface(
|
26 |
+
fn=process_sketch,
|
27 |
+
inputs="sketchpad",
|
28 |
+
outputs=["text", "text"],
|
29 |
+
layout="vertical",
|
30 |
+
title="Распознавание рисунка"
|
31 |
+
)
|
32 |
+
|
33 |
+
iface.launch()
|