OttoYu commited on
Commit
d8ca4e9
1 Parent(s): b4e2163

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -14
app.py CHANGED
@@ -1,15 +1,4 @@
1
  import gradio as gr
2
-
3
- with gr.Blocks() as model:
4
- gr.Markdown("🌳Tree Condition and Disease Classifier")
5
- with gr.Tab("Tree Condition Classification 樹況分類"):
6
- gr.Interface.load("models/OttoYu/Tree-ConditionHK", title="🌳 Tree Condition Classification 樹況分類 (bilingual)",description="This online application covers 22 most typical tree disease over 290+ images. If you find any trees that has hidden injures, you can classifies with our model and report the tree condition via this form (https://rb.gy/c1sfja). 此在線程式涵蓋22種官方部門樹況分類的標準,超過290張圖像。如果您發現任何樹木有隱傷,您可以使用我們的模型進行分類並通過此表格報告樹木狀況。 ")
7
-
8
- with gr.Tab("Tree Disease Classification 樹木病害分類"):
9
- gr.Interface.load("models/OttoYu/TreeDisease",title="🦠 Tree Disease Classification 樹木病害分類 (bilingual)",description="This online application covers 22 most typical tree disease over 140+ images. 此應用程式涵蓋 22 種最典型的樹木病害,超過 140 張圖像。")
10
-
11
- text_button.click(flip_text, inputs=text_input, outputs=text_output)
12
- image_button.click(flip_image, inputs=image_input, outputs=image_output)
13
-
14
- if __name__ == "__main__":
15
- demo.launch()
 
1
  import gradio as gr
2
+ gr.Interface.load("models/OttoYu/TreeDisease",
3
+ title="🦠 Tree Disease Classification 樹木病害分類 (bilingual)",
4
+ description="This online application covers 22 most typical tree disease over 140+ images. 此應用程式涵蓋 22 種最典型的樹木病害,超過 140 張圖像。").launch()