miracle01 commited on
Commit
a2bd9bf
·
1 Parent(s): 48bbe67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -17,17 +17,17 @@ def predict_image(img):
17
  import gradio as gr
18
  image = gr.inputs.Image(shape=(img_height, img_width))
19
  label = gr.outputs.Label(num_top_classes=num_classes)
20
-
21
-
22
-
23
- gr.Interface(fn=predict_image, inputs=image, outputs=label,
24
- title="Flower Classification using InceptionV3",
25
- description="A flower classification app built using python and deployed using gradio",
26
- student_details = [
27
  ["NAME: OLUMIDE TOLULOPE SAMUEL,"],
28
  ["MATRIC NO: HNDCOM/22/037"],
29
  ["CLASS: HND1"],
30
  ["LEVEL: 300L"],
31
  ["DEPARTMENT: COMPUTER SCIENCE"],
32
  ],
 
 
 
 
 
 
33
  interpretation='default').launch()
 
17
  import gradio as gr
18
  image = gr.inputs.Image(shape=(img_height, img_width))
19
  label = gr.outputs.Label(num_top_classes=num_classes)
20
+ examples = [
 
 
 
 
 
 
21
  ["NAME: OLUMIDE TOLULOPE SAMUEL,"],
22
  ["MATRIC NO: HNDCOM/22/037"],
23
  ["CLASS: HND1"],
24
  ["LEVEL: 300L"],
25
  ["DEPARTMENT: COMPUTER SCIENCE"],
26
  ],
27
+
28
+
29
+ gr.Interface(fn=predict_image, inputs=image, outputs=label,
30
+ title="Flower Classification using InceptionV3",
31
+ description="A flower classification app built using python and deployed using gradio",
32
+ examples=examples,
33
  interpretation='default').launch()