Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import tensorflow as tf
|
3 |
+
import numpy as np
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
|
8 |
+
model = tf.keras.models.load_model('')
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
model =
|
20 |
+
|
21 |
+
def image_classifier(inp):
|
22 |
+
return {'cat': 0.3, 'dog': 0.7}
|
23 |
+
|
24 |
+
demo = gr.Interface(fn=image_classifier, inputs="image", outputs="label")
|
25 |
+
demo.launch()
|