Atsushi commited on
Commit
78890d7
1 Parent(s): 6a4c156

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -8,7 +8,9 @@ import pathlib
8
  plt = platform.system()
9
  if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
10
  model_inf = load_learner(pkl)
11
- print(os.getcwd())
 
 
12
  def kinoko_uranai(img):
13
  replace_dic = {"_ッロウッ":" (group)","ー":""}
14
  result_dic = {}
@@ -25,4 +27,4 @@ def kinoko_uranai(img):
25
  itr=itr+1
26
  return result_dic
27
  outputs = gr.outputs.Label(num_top_classes=5)
28
- iface = gr.Interface(fn=kinoko_uranai, inputs="image", outputs=outputs).launch(debug=True)
8
  plt = platform.system()
9
  if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
10
  model_inf = load_learner(pkl)
11
+ #print(os.getcwd())
12
+ title = "きのこミニAI"
13
+ description = "615種類のきのこを判定します。日本国内で撮られた約10万枚の写真を学習に使用。食べる人ではなく学ぶ人のためのツールです。ご利用は自己責任で。最終更新日:2021/11/9"
14
  def kinoko_uranai(img):
15
  replace_dic = {"_ッロウッ":" (group)","ー":""}
16
  result_dic = {}
27
  itr=itr+1
28
  return result_dic
29
  outputs = gr.outputs.Label(num_top_classes=5)
30
+ iface = gr.Interface(fn=kinoko_uranai, inputs="image", outputs=outputs,title=title,description=description).launch(debug=True)