ISYS commited on
Commit
3007cae
1 Parent(s): 9224e35
Files changed (1) hide show
  1. app.py +12 -2
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()