kenken999 commited on
Commit
dc8c1fd
β€’
1 Parent(s): 5798728
Files changed (1) hide show
  1. mysite/routers/fastapi.py +2 -2
mysite/routers/fastapi.py CHANGED
@@ -100,9 +100,9 @@ def setup_webhook_routes(app: FastAPI):
100
  #test_set_lide(subtitle, text)
101
  send_google_chat_card(webhook_url, title, subtitle, link_text, link_url)
102
  #test case
103
-
104
  #test_prompt
105
- res = test_prompt(prompt_res,text)
106
  send_google_chat_card(webhook_url, "γƒ—γƒ­γƒ³γƒ—γƒˆγƒ†γ‚Ήγƒˆ"+first_line, str(res), link_text, link_url)
107
 
108
 
 
100
  #test_set_lide(subtitle, text)
101
  send_google_chat_card(webhook_url, title, subtitle, link_text, link_url)
102
  #test case
103
+ first_line = text.split('\n')[0]
104
  #test_prompt
105
+ res = test_prompt(prompt_res,first_line)
106
  send_google_chat_card(webhook_url, "γƒ—γƒ­γƒ³γƒ—γƒˆγƒ†γ‚Ήγƒˆ"+first_line, str(res), link_text, link_url)
107
 
108