Deva commited on
Commit
8041a37
·
1 Parent(s): 55b0e30

Add application file

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
5
  # return "Hello " + name + "!"
6
 
7
 
8
- def image_classifier(im):
9
  """
10
  arr = np.expand_dims(im, axis=0)
11
  arr = tf.keras.applications.mobilenet.preprocess_input(arr)
@@ -14,20 +14,17 @@ def image_classifier(im):
14
  """
15
  pass
16
 
 
17
  def test():
18
  a = 2
19
  pass
20
 
21
- iface = gr.Interface
22
- (
23
- image_classifier, gr.Image(), "image")
24
 
25
- )
 
26
 
27
 
28
  if __name__ == "__main__":
29
  iface.launch(share=True)
30
  # demo = gr.Interface(fn=greet, inputs="text", outputs="text")
31
  # demo.launch(share=True)
32
-
33
- a = 1
 
5
  # return "Hello " + name + "!"
6
 
7
 
8
+ def image_classifier():
9
  """
10
  arr = np.expand_dims(im, axis=0)
11
  arr = tf.keras.applications.mobilenet.preprocess_input(arr)
 
14
  """
15
  pass
16
 
17
+
18
  def test():
19
  a = 2
20
  pass
21
 
 
 
 
22
 
23
+ iface = gr.Interface
24
+ (image_classifier, gr.Image(), "image")
25
 
26
 
27
  if __name__ == "__main__":
28
  iface.launch(share=True)
29
  # demo = gr.Interface(fn=greet, inputs="text", outputs="text")
30
  # demo.launch(share=True)