Spaces:
Running
on
Zero
Running
on
Zero
sdsd
Browse files- mysite/routers/fastapi.py +11 -12
mysite/routers/fastapi.py
CHANGED
@@ -199,16 +199,6 @@ def setup_webhook_routes(app: FastAPI):
|
|
199 |
#test_set_lide(text,"a1")
|
200 |
#no_process_file(text, "ai")
|
201 |
#\r\m
|
202 |
-
from babyagi.classesa.diamond import calculate
|
203 |
-
title = f""" ダイヤ予測計算の実行 類似5件表示 {text}
|
204 |
-
id,price,carat, cut, color, clarity, depth, diamondprice.table, x, y, z 類似度"""
|
205 |
-
res_calculate = calculate(text)
|
206 |
-
subtitle = res_calculate
|
207 |
-
link_text = "データを確認する"
|
208 |
-
link_url = "https://kenken999-php.hf.space/diamondprice_list.php"
|
209 |
-
#test_set_lide(subtitle, text)
|
210 |
-
send_google_chat_card(webhook_url, title, subtitle, link_text, link_url)
|
211 |
-
return
|
212 |
|
213 |
|
214 |
title = f""" プロンプト作成 {promps}"""
|
@@ -245,9 +235,18 @@ def setup_webhook_routes(app: FastAPI):
|
|
245 |
# execute open interpreter
|
246 |
full_response,history = chat_with_interpreter_no_stream(res)
|
247 |
send_google_chat_card(webhook_url, f"自動設定開始 {res}", str(full_response), link_text, link_url)
|
248 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
#return
|
250 |
-
return
|
251 |
"""
|
252 |
for event in events:
|
253 |
if event["type"] == "message" and event["message"]["type"] == "text":
|
|
|
199 |
#test_set_lide(text,"a1")
|
200 |
#no_process_file(text, "ai")
|
201 |
#\r\m
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
|
203 |
|
204 |
title = f""" プロンプト作成 {promps}"""
|
|
|
235 |
# execute open interpreter
|
236 |
full_response,history = chat_with_interpreter_no_stream(res)
|
237 |
send_google_chat_card(webhook_url, f"自動設定開始 {res}", str(full_response), link_text, link_url)
|
238 |
+
from babyagi.classesa.diamond import calculate
|
239 |
+
title = f""" ダイヤ予測計算の実行 類似5件表示 {text}
|
240 |
+
id,price,carat, cut, color, clarity, depth, diamondprice.table, x, y, z 類似度"""
|
241 |
+
res_calculate = calculate(text)
|
242 |
+
subtitle = res_calculate
|
243 |
+
link_text = "データを確認する"
|
244 |
+
link_url = "https://kenken999-php.hf.space/diamondprice_list.php"
|
245 |
+
#test_set_lide(subtitle, text)
|
246 |
+
send_google_chat_card(webhook_url, title, subtitle, link_text, link_url)
|
247 |
+
#return
|
248 |
#return
|
249 |
+
#return
|
250 |
"""
|
251 |
for event in events:
|
252 |
if event["type"] == "message" and event["message"]["type"] == "text":
|