Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,6 @@ import numpy as np
|
|
5 |
from tensorflow.keras.models import load_model
|
6 |
import os
|
7 |
|
8 |
-
tf.compat.v1.disable_v2_behavior()
|
9 |
|
10 |
#os.environ['TF_KERAS'] = '1'
|
11 |
#os.environ['TF_ENABLE_ONEDNN_OPTS']='0'
|
@@ -20,6 +19,6 @@ def classify_image(inp):
|
|
20 |
image = gr.inputs.Image(shape=(IMG_SIZE, IMG_SIZE),label='Input')
|
21 |
label = gr.outputs.Label(num_top_classes=2)
|
22 |
|
23 |
-
gr.Interface(fn=classify_image, inputs=image, outputs=label, title='Brand Logo Detection'
|
24 |
|
25 |
|
|
|
5 |
from tensorflow.keras.models import load_model
|
6 |
import os
|
7 |
|
|
|
8 |
|
9 |
#os.environ['TF_KERAS'] = '1'
|
10 |
#os.environ['TF_ENABLE_ONEDNN_OPTS']='0'
|
|
|
19 |
image = gr.inputs.Image(shape=(IMG_SIZE, IMG_SIZE),label='Input')
|
20 |
label = gr.outputs.Label(num_top_classes=2)
|
21 |
|
22 |
+
gr.Interface(fn=classify_image, inputs=image, outputs=label, title='Brand Logo Detection').launch(debug=False)
|
23 |
|
24 |
|