OmidSakaki commited on
Commit
0b253c7
·
verified ·
1 Parent(s): ae2c365

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -116,7 +116,7 @@ classes_dict = {
116
 
117
  def Plot_Result(raw_plate, digits) :
118
 
119
- fig, ax = plt.subplots(figsize=(15,10))
120
 
121
  #plt.figure(figsize=(15, 10))
122
  #plt.subplot(2, 1, 2)
@@ -147,8 +147,9 @@ def Plot_Result(raw_plate, digits) :
147
  #plt.axis('off')
148
  #plt.subplots_adjust(top=0.75)
149
  #plt.imshow(raw_plate)
150
- ax.imshow(raw_plate)
151
- ax.show()
 
152
 
153
 
154
 
@@ -198,7 +199,8 @@ if selected_type == "Upload Image":
198
 
199
  st.markdown("------")
200
 
201
- st.image(FINAL(img))
 
202
 
203
 
204
 
 
116
 
117
  def Plot_Result(raw_plate, digits) :
118
 
119
+ fig = plt.subplots(figsize=(15,10))
120
 
121
  #plt.figure(figsize=(15, 10))
122
  #plt.subplot(2, 1, 2)
 
147
  #plt.axis('off')
148
  #plt.subplots_adjust(top=0.75)
149
  #plt.imshow(raw_plate)
150
+ #ax.imshow(raw_plate)
151
+ #ax.show()
152
+ fig = plt.imshow(raw_plate)
153
 
154
 
155
 
 
199
 
200
  st.markdown("------")
201
 
202
+ st.pyplot(FINAL(img))
203
+
204
 
205
 
206