Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files- .gitattributes +1 -0
- chat_history.db +0 -0
- controllers/gpt_enginner20240625064832 +1 -0
- controllers/gpt_enginner20240625065113 +1 -0
- controllers/gpt_enginner20240625070231 +1 -0
- controllers/gpt_enginner20240625070450 +1 -0
- controllers/gpt_enginner20240625070706 +1 -0
- mysite/interpreter/google_chat.py +1 -1
- mysite/routers/fastapi.py +2 -2
- workspace/code/main.py +0 -0
.gitattributes
CHANGED
@@ -35,3 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
35 |
*.duckdb filter=lfs diff=lfs merge=lfs -text
|
36 |
*.gif filter=lfs diff=lfs merge=lfs -text
|
37 |
*.sqlite3 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
35 |
*.duckdb filter=lfs diff=lfs merge=lfs -text
|
36 |
*.gif filter=lfs diff=lfs merge=lfs -text
|
37 |
*.sqlite3 filter=lfs diff=lfs merge=lfs -text
|
38 |
+
chat_history.db filter=lfs diff=lfs merge=lfs -text
|
chat_history.db
CHANGED
Binary files a/chat_history.db and b/chat_history.db differ
|
|
controllers/gpt_enginner20240625064832
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit a215dc4f2319c92b6a3037168cd1f0798855ba48
|
controllers/gpt_enginner20240625065113
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 0d00cb38ae1da913b2c81746d1446fdcebd84801
|
controllers/gpt_enginner20240625070231
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 3c3ffd2c163c0e32d2633723b46606f766f0c644
|
controllers/gpt_enginner20240625070450
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit e87b40ade16bfcbc1089ef829f6ee3b040d816ed
|
controllers/gpt_enginner20240625070706
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 0185461d946aebe3d6e6e4403a6736accc1a020c
|
mysite/interpreter/google_chat.py
CHANGED
@@ -30,7 +30,7 @@ def send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,imag
|
|
30 |
},
|
31 |
{
|
32 |
"textParagraph": {
|
33 |
-
"text": "
|
34 |
}
|
35 |
},
|
36 |
{
|
|
|
30 |
},
|
31 |
{
|
32 |
"textParagraph": {
|
33 |
+
"text": "{}".format(link_text)
|
34 |
}
|
35 |
},
|
36 |
{
|
mysite/routers/fastapi.py
CHANGED
@@ -234,8 +234,8 @@ def setup_webhook_routes(app: FastAPI):
|
|
234 |
#########################################################################
|
235 |
#user_name,thmbnail#
|
236 |
title = f""" {user_name}様から下記の質問があります"""
|
237 |
-
subtitle = f"""<b>ユーザーID</b> {user_id}\r\n <b>質問内容</b
|
238 |
-
link_text = "
|
239 |
link_url = "https://docs.google.com/spreadsheets/d/13pqP-Ywo5eRlZBsYX2m3ChARG38EoIYOowFd3cWij1c/edit?gid=283940886#gid=283940886"
|
240 |
#test_set_lide(subtitle, text)
|
241 |
thread_name = send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,thmbnail)
|
|
|
234 |
#########################################################################
|
235 |
#user_name,thmbnail#
|
236 |
title = f""" {user_name}様から下記の質問があります"""
|
237 |
+
subtitle = f"""<b>ユーザーID</b> {user_id}\r\n <b>質問内容</b>\r\n {text}"""
|
238 |
+
link_text = "<b>チャットボット設定用シート</b>\r\n シート用のアプリはチャットから\r\n @リファペディア\r\n と打ち込むと開きます"
|
239 |
link_url = "https://docs.google.com/spreadsheets/d/13pqP-Ywo5eRlZBsYX2m3ChARG38EoIYOowFd3cWij1c/edit?gid=283940886#gid=283940886"
|
240 |
#test_set_lide(subtitle, text)
|
241 |
thread_name = send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,thmbnail)
|
workspace/code/main.py
ADDED
File without changes
|