ajinkyakolhe112 commited on
Commit
e57b948
·
verified ·
1 Parent(s): b4bd918

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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"Hello, {name}! 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,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
- inp_name = gr.Textbox(placeholder="What is your name?")
42
  inp_model_details = gr.Textbox(placeholder="Enter model details")
43
  out = gr.Textbox()
44
- inp_name.change(welcome, inp_name, inp_model_details, out)
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():