Toshifumi commited on
Commit
55bb877
·
1 Parent(s): a3af80d

Update app,py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -6,9 +6,6 @@ from tensorflow.keras.models import load_model
6
 
7
  model = load_model('SD_4car_20230110_h5')
8
 
9
-
10
- interface.close()
11
-
12
  def car4_classifier(img):
13
  img=np.expand_dims(img, 0)
14
  img = preprocess_input(img)
@@ -28,4 +25,4 @@ label=gr.outputs.Label(num_top_classes=1)
28
 
29
  interface=gr.Interface(fn=car4_classifier, inputs="image", outputs=label, live=False, title="TOSHISTATS-supercar-classifier (GTR,Porsche,Lexus,Lamborghini)")
30
 
31
- interface.launch(share=False)
 
6
 
7
  model = load_model('SD_4car_20230110_h5')
8
 
 
 
 
9
  def car4_classifier(img):
10
  img=np.expand_dims(img, 0)
11
  img = preprocess_input(img)
 
25
 
26
  interface=gr.Interface(fn=car4_classifier, inputs="image", outputs=label, live=False, title="TOSHISTATS-supercar-classifier (GTR,Porsche,Lexus,Lamborghini)")
27
 
28
+ interface.launch(share=False, debug=True)