Commit
·
0ef5fab
1
Parent(s):
7e79b8f
updated title
Browse files
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(
|
| 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 |
|