OttoYu commited on
Commit
f941fae
1 Parent(s): 2a41710

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -15
app.py CHANGED
@@ -1,16 +1,4 @@
1
- import numpy as np
2
  import gradio as gr
3
-
4
- with gr.Blocks() as model:
5
- gr.Markdown("🌳 Tree Condition and Disease Classifier")
6
- with gr.Tab("Tree Condition Classification 樹況分類"):
7
- 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張圖像。如果您發現任何樹木有隱傷,您可以使用我們的模型進行分類並通過此表格報告樹木狀況。 ").launch()
8
-
9
- with gr.Tab("Tree Disease Classification 樹木病害分類"):
10
- 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 張圖像。").launch()
11
-
12
- text_button.click(flip_text, inputs=text_input, outputs=text_output)
13
- image_button.click(flip_image, inputs=image_input, outputs=image_output)
14
-
15
- if __name__ == "__main__":
16
- model.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()