Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,9 @@ def classify_image(image_filepath):
|
|
26 |
|
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 |
gr.Markdown(
|
@@ -33,6 +36,9 @@ with gr.Blocks(title="Image Classification for 1000 Objects", css=".gradio-conta
|
|
33 |
# Welcome to Image Classification Demo
|
34 |
Start typing below to see the output.
|
35 |
""")
|
|
|
|
|
|
|
36 |
|
37 |
|
38 |
with gr.Row():
|
|
|
26 |
|
27 |
import gradio as gr
|
28 |
|
29 |
+
def welcome(name):
|
30 |
+
return f"Welcome to Gradio, {name}!"
|
31 |
+
|
32 |
with gr.Blocks(title="Image Classification for 1000 Objects", css=".gradio-container {background:#FFD1DC;}") as demo:
|
33 |
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>""")
|
34 |
gr.Markdown(
|
|
|
36 |
# Welcome to Image Classification Demo
|
37 |
Start typing below to see the output.
|
38 |
""")
|
39 |
+
inp = gr.Textbox(placeholder="What is your name?")
|
40 |
+
out = gr.Textbox()
|
41 |
+
inp.change(welcome, inp, out)
|
42 |
|
43 |
|
44 |
with gr.Row():
|