Spaces:
Runtime error
Runtime error
cybernatedArt
commited on
Commit
•
ed8fb92
1
Parent(s):
f914b82
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,6 @@ import gradio as gr
|
|
2 |
import tensorflow as tf
|
3 |
import numpy as np
|
4 |
import requests
|
5 |
-
from tensorflow.keras.applications.resnet50 import ResNet50
|
6 |
-
from tensorflow.keras.applications.resnet50 import preprocess_input
|
7 |
-
from tensorflow.keras.models import load_model
|
8 |
|
9 |
model = tf.keras.models.load_model('model_2.h5')
|
10 |
|
@@ -44,7 +41,7 @@ examples = [
|
|
44 |
]
|
45 |
|
46 |
# launching the interface
|
47 |
-
gr.Interface( example,inputs = image,outputs = label,capture_session = True,
|
48 |
title=title,
|
49 |
description= description,
|
50 |
examples = examples
|
|
|
2 |
import tensorflow as tf
|
3 |
import numpy as np
|
4 |
import requests
|
|
|
|
|
|
|
5 |
|
6 |
model = tf.keras.models.load_model('model_2.h5')
|
7 |
|
|
|
41 |
]
|
42 |
|
43 |
# launching the interface
|
44 |
+
gr.Interface( fn=example,inputs = image,outputs = label,capture_session = True,
|
45 |
title=title,
|
46 |
description= description,
|
47 |
examples = examples
|