ClayTreeClay commited on
Commit
0ef5fab
·
1 Parent(s): 7e79b8f

updated title

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,7 +31,7 @@ def gradio_interface(image_path, organs):
31
  status_code, json_result = identify_plant(image_paths, organs)
32
  return json_result.get("bestMatch",None), json_result
33
 
34
- with gr.Blocks() as demo:
35
  image = gr.Image(type="filepath", label = "Plant Image")
36
  identify_btn = gr.Button("Identify")
37
 
@@ -41,6 +41,6 @@ with gr.Blocks() as demo:
41
 
42
  identify_btn.click(gradio_interface, inputs=[image,organs_input], outputs = [best_match_text,json_text])
43
 
44
- demo.launch(title="Clay&Tree PlantyAI")
45
 
46
 
 
31
  status_code, json_result = identify_plant(image_paths, organs)
32
  return json_result.get("bestMatch",None), json_result
33
 
34
+ with gr.Blocks(title="Clay&Tree PlantyAI") as demo:
35
  image = gr.Image(type="filepath", label = "Plant Image")
36
  identify_btn = gr.Button("Identify")
37
 
 
41
 
42
  identify_btn.click(gradio_interface, inputs=[image,organs_input], outputs = [best_match_text,json_text])
43
 
44
+ demo.launch()
45
 
46