Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def classify_image(image_filepath):
|
|
27 |
import gradio as gr
|
28 |
|
29 |
def welcome(name, model_details):
|
30 |
-
return f"
|
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>""")
|
@@ -38,10 +38,10 @@ with gr.Blocks(title="Image Classification for 1000 Objects", css=".gradio-conta
|
|
38 |
Start typing below to see the output.
|
39 |
"""
|
40 |
)
|
41 |
-
|
42 |
inp_model_details = gr.Textbox(placeholder="Enter model details")
|
43 |
out = gr.Textbox()
|
44 |
-
inp_name.change(
|
45 |
|
46 |
|
47 |
with gr.Row():
|
|
|
27 |
import gradio as gr
|
28 |
|
29 |
def welcome(name, model_details):
|
30 |
+
return f"Your model details are: {model_details}"
|
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>""")
|
|
|
38 |
Start typing below to see the output.
|
39 |
"""
|
40 |
)
|
41 |
+
|
42 |
inp_model_details = gr.Textbox(placeholder="Enter model details")
|
43 |
out = gr.Textbox()
|
44 |
+
inp_name.change( inp_model_details, welcome, out)
|
45 |
|
46 |
|
47 |
with gr.Row():
|