Spaces:
Running
on
Zero
Running
on
Zero
fda
Browse files
mysite/routers/fastapi.py
CHANGED
@@ -246,13 +246,14 @@ def setup_webhook_routes(app: FastAPI):
|
|
246 |
#test_set_lide(subtitle, text)
|
247 |
thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
|
248 |
thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
|
249 |
-
return
|
250 |
#test case
|
251 |
#########################################################################
|
252 |
first_line = text.split('\n')[0]
|
253 |
#test_prompt
|
254 |
res = test_prompt("返信は必ず日本語でして下さい \r\n"+prompt_res,text)
|
255 |
-
|
|
|
256 |
now = datetime.now()
|
257 |
yyyymmddhis = now.strftime('%Y%m%d%H%M%S')
|
258 |
|
@@ -288,7 +289,7 @@ def setup_webhook_routes(app: FastAPI):
|
|
288 |
link_text = "データを確認する"
|
289 |
link_url = "https://kenken999-php.hf.space/diamondprice_list.php"
|
290 |
#test_set_lide(subtitle, text)
|
291 |
-
|
292 |
#########################################################################
|
293 |
from babyagi.babyagi import completion
|
294 |
proc = subprocess.Popen(
|
@@ -298,7 +299,7 @@ def setup_webhook_routes(app: FastAPI):
|
|
298 |
stderr=subprocess.PIPE,
|
299 |
text=True,
|
300 |
)
|
301 |
-
|
302 |
|
303 |
#prompt_res_agi = completion("日本語で下記のプランを考えて "+res)
|
304 |
#title = f""" タスク作成 再度考える {promps}"""
|
|
|
246 |
#test_set_lide(subtitle, text)
|
247 |
thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
|
248 |
thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
|
249 |
+
#return
|
250 |
#test case
|
251 |
#########################################################################
|
252 |
first_line = text.split('\n')[0]
|
253 |
#test_prompt
|
254 |
res = test_prompt("返信は必ず日本語でして下さい \r\n"+prompt_res,text)
|
255 |
+
thread_name = send_google_chat_card_thread(webhook_url, "プロンプトテスト "+first_line, str(res), link_text, link_url,thread_name)
|
256 |
+
#thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
|
257 |
now = datetime.now()
|
258 |
yyyymmddhis = now.strftime('%Y%m%d%H%M%S')
|
259 |
|
|
|
289 |
link_text = "データを確認する"
|
290 |
link_url = "https://kenken999-php.hf.space/diamondprice_list.php"
|
291 |
#test_set_lide(subtitle, text)
|
292 |
+
thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
|
293 |
#########################################################################
|
294 |
from babyagi.babyagi import completion
|
295 |
proc = subprocess.Popen(
|
|
|
299 |
stderr=subprocess.PIPE,
|
300 |
text=True,
|
301 |
)
|
302 |
+
#thread_name = send_google_chat_card_thread(webhook_url, title, proc, link_text, link_url,thread_name)
|
303 |
|
304 |
#prompt_res_agi = completion("日本語で下記のプランを考えて "+res)
|
305 |
#title = f""" タスク作成 再度考える {promps}"""
|