vumichien commited on
Commit
5f80a5a
·
1 Parent(s): 7ff44b8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -2
main.py CHANGED
@@ -22,9 +22,10 @@ ZIP = False
22
  default_bot_voice_list = ["こんにちは、アイティコンサルティングとシステム開発を支援します。よろしくお願いします。",
23
  "こんにちは、デトモです。システム開発全般を支援します。",
24
  "こんにちは、デトモです。オフショア開発全般を支援します。",
25
- "こんにちは、私はアイサロボです。",
26
  "こんにちは、エッジコンピューティングソリューションを提供します。"]
27
  area_threshold = 0
 
28
 
29
  # Config for human input
30
  prompt_template = "私はあなたに、Detomo社が作ったロボットのように振る舞ってほしいです。デトモは高度なデジタル化社会を支えます。"\
@@ -104,7 +105,7 @@ async def camera_picture_api(
104
  print(f"Distance: {most_close}. Different value: {diff_value}")
105
 
106
  # return results
107
- if most_close >= area_threshold and diff_value >= 0.5:
108
  if ZIP:
109
  voice_bot_path = tts(default_bot_voice, language="ja", encode=False)
110
  io = BytesIO()
 
22
  default_bot_voice_list = ["こんにちは、アイティコンサルティングとシステム開発を支援します。よろしくお願いします。",
23
  "こんにちは、デトモです。システム開発全般を支援します。",
24
  "こんにちは、デトモです。オフショア開発全般を支援します。",
25
+ "こんにちは、私はアイサロボです。システム開発全般を支援します。",
26
  "こんにちは、エッジコンピューティングソリューションを提供します。"]
27
  area_threshold = 0
28
+ diff_value_threshold = 0
29
 
30
  # Config for human input
31
  prompt_template = "私はあなたに、Detomo社が作ったロボットのように振る舞ってほしいです。デトモは高度なデジタル化社会を支えます。"\
 
105
  print(f"Distance: {most_close}. Different value: {diff_value}")
106
 
107
  # return results
108
+ if most_close >= area_threshold and diff_value >= diff_value_threshold:
109
  if ZIP:
110
  voice_bot_path = tts(default_bot_voice, language="ja", encode=False)
111
  io = BytesIO()