Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def classify_image(image_filepath):
|
|
27 |
import gradio as gr
|
28 |
|
29 |
with gr.Blocks(title="Image Classification for 1000 Objects", css=".gradio-container {background:#FFD1DC;}") as demo:
|
30 |
-
gr.HTML("""<div style="font-family:'
|
31 |
|
32 |
with gr.Row():
|
33 |
input_image = gr.Image(type="filepath", image_mode="L")
|
@@ -41,6 +41,8 @@ with gr.Blocks(title="Image Classification for 1000 Objects", css=".gradio-conta
|
|
41 |
gr.Examples(['./cheetah.jpg'], label='Cheetah' , inputs=input_image)
|
42 |
gr.Examples(['./eagle.jpg'], label='Eagle' , inputs=input_image)
|
43 |
gr.Examples(['./indigobird.jpg'], label='Indigo Bird' , inputs=input_image)
|
|
|
|
|
44 |
|
45 |
# gr.Interface(fn=predict,
|
46 |
# inputs=gr.Image(type="pil"),
|
|
|
27 |
import gradio as gr
|
28 |
|
29 |
with gr.Blocks(title="Image Classification for 1000 Objects", css=".gradio-container {background:#FFD1DC;}") as demo:
|
30 |
+
gr.HTML("""<div style="font-family:'Calibri', 'Serif'; font-size:16pt; font-weight:bold; text-align:center; color:black;">Image Classification for 1000 Objects</div>""")
|
31 |
|
32 |
with gr.Row():
|
33 |
input_image = gr.Image(type="filepath", image_mode="L")
|
|
|
41 |
gr.Examples(['./cheetah.jpg'], label='Cheetah' , inputs=input_image)
|
42 |
gr.Examples(['./eagle.jpg'], label='Eagle' , inputs=input_image)
|
43 |
gr.Examples(['./indigobird.jpg'], label='Indigo Bird' , inputs=input_image)
|
44 |
+
gr.Examples(['./aircraftcarrier.jpg'], label='Aircraft Carrier' , inputs=input_image)
|
45 |
+
gr.Examples(['./acousticguitar.jpg'], label='Acoustic Guitar' , inputs=input_image)
|
46 |
|
47 |
# gr.Interface(fn=predict,
|
48 |
# inputs=gr.Image(type="pil"),
|