suriya7 commited on
Commit
1a5d306
·
verified ·
1 Parent(s): f93dd53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -0
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()