MilkoTv commited on
Commit
474da68
·
1 Parent(s): 6a87eb5

replaced shape with width and height

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@ File: recognize.py
3
  Project: BulgarianPatternsRecognizer
4
  Author: Milko Videv (milko.videv@thalesgroup.com)
5
  -----
6
- Last Modified: Tuesday, 5th March 2024 6:28:12 pm
7
  Modified By: Milko Videv (milko.videv@thalesgroup.com>)
8
  -----
9
  Copyright 2017 - 2024, Thales DIS, MCS SSH
@@ -31,7 +31,7 @@ def render():
31
 
32
  demo = gr.Interface(fn=predict,
33
  theme=gr.themes.Monochrome(primary_hue=slate),
34
- inputs=gr.components.Image(shape=(512, 512), interactive=True, label="Шевица"),
35
  outputs=gr.components.Label(num_top_classes=3, label="Резултат"),
36
  title=title,
37
  description=description,
 
3
  Project: BulgarianPatternsRecognizer
4
  Author: Milko Videv (milko.videv@thalesgroup.com)
5
  -----
6
+ Last Modified: Wednesday, 6th March 2024 9:31:26 am
7
  Modified By: Milko Videv (milko.videv@thalesgroup.com>)
8
  -----
9
  Copyright 2017 - 2024, Thales DIS, MCS SSH
 
31
 
32
  demo = gr.Interface(fn=predict,
33
  theme=gr.themes.Monochrome(primary_hue=slate),
34
+ inputs=gr.components.Image(width=512, height=512, interactive=True, label="Шевица"),
35
  outputs=gr.components.Label(num_top_classes=3, label="Резултат"),
36
  title=title,
37
  description=description,