Spaces:
Sleeping
Sleeping
test
Browse files- chat_history.db +0 -0
- controllers/gpt_enginner20240623064034 +1 -0
- mysite/routers/fastapi.py +15 -3
- polls/test.ipynb +14 -14
chat_history.db
CHANGED
Binary files a/chat_history.db and b/chat_history.db differ
|
|
controllers/gpt_enginner20240623064034
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit a73e5547aad8f341330815efd4417289029c58a3
|
mysite/routers/fastapi.py
CHANGED
@@ -186,6 +186,17 @@ def setup_webhook_routes(app: FastAPI):
|
|
186 |
promps,prompt_res = prompt_genalate("返信は日本語で答えて下さい "+text,prompt2)
|
187 |
#test_set_lide(text,"a1")
|
188 |
#no_process_file(text, "ai")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
title = f""" プロンプト作成 {promps}"""
|
190 |
subtitle = prompt_res
|
191 |
link_text = "データを確認する"
|
@@ -215,10 +226,11 @@ def setup_webhook_routes(app: FastAPI):
|
|
215 |
下記の質問 作成対応内容
|
216 |
|
217 |
"""
|
|
|
218 |
res_no_process = no_process_file(prompt_for_create_system+res, "gpt_enginner"+ yyyymmddhis)
|
219 |
-
|
220 |
full_response,history = chat_with_interpreter_no_stream(res)
|
221 |
-
|
222 |
|
223 |
#return
|
224 |
"""
|
@@ -245,7 +257,7 @@ def setup_webhook_routes(app: FastAPI):
|
|
245 |
}
|
246 |
logger.info("Received Body: %s", "send data to appsheet ")
|
247 |
response = requests.post(os.getenv("WEBHOOK_URL"), headers=headers, data=body)
|
248 |
-
|
249 |
line_signature = received_headers.get("x-line-signature")
|
250 |
logger.info("Received Body: %s", "start send messages ")
|
251 |
if not line_signature:
|
|
|
186 |
promps,prompt_res = prompt_genalate("返信は日本語で答えて下さい "+text,prompt2)
|
187 |
#test_set_lide(text,"a1")
|
188 |
#no_process_file(text, "ai")
|
189 |
+
from babyagi.classesa import calculate
|
190 |
+
title = f""" ダイヤ計算の実行 cut calat clarity weght """
|
191 |
+
calculate("")
|
192 |
+
subtitle = prompt_res
|
193 |
+
link_text = "データを確認する"
|
194 |
+
link_url = "https://kenken999-php.hf.space/diamondprice_list.php"
|
195 |
+
#test_set_lide(subtitle, text)
|
196 |
+
send_google_chat_card(webhook_url, title, subtitle, link_text, link_url)
|
197 |
+
return
|
198 |
+
|
199 |
+
|
200 |
title = f""" プロンプト作成 {promps}"""
|
201 |
subtitle = prompt_res
|
202 |
link_text = "データを確認する"
|
|
|
226 |
下記の質問 作成対応内容
|
227 |
|
228 |
"""
|
229 |
+
# excute create program
|
230 |
res_no_process = no_process_file(prompt_for_create_system+res, "gpt_enginner"+ yyyymmddhis)
|
231 |
+
# execute open interpreter
|
232 |
full_response,history = chat_with_interpreter_no_stream(res)
|
233 |
+
send_google_chat_card(webhook_url, f"自動設定開始 {res}", str(full_response), link_text, link_url)
|
234 |
|
235 |
#return
|
236 |
"""
|
|
|
257 |
}
|
258 |
logger.info("Received Body: %s", "send data to appsheet ")
|
259 |
response = requests.post(os.getenv("WEBHOOK_URL"), headers=headers, data=body)
|
260 |
+
# check signature
|
261 |
line_signature = received_headers.get("x-line-signature")
|
262 |
logger.info("Received Body: %s", "start send messages ")
|
263 |
if not line_signature:
|
polls/test.ipynb
CHANGED
@@ -11,34 +11,34 @@
|
|
11 |
"text": [
|
12 |
"Requirement already satisfied: datasets in /usr/local/lib/python3.10/site-packages (2.19.2)\n",
|
13 |
"Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.10/site-packages (from datasets) (1.26.4)\n",
|
14 |
-
"Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/site-packages (from datasets) (6.0.1)\n",
|
15 |
-
"Requirement already satisfied: xxhash in /usr/local/lib/python3.10/site-packages (from datasets) (3.4.1)\n",
|
16 |
-
"Requirement already satisfied: aiohttp in /usr/local/lib/python3.10/site-packages (from datasets) (3.9.5)\n",
|
17 |
-
"Requirement already satisfied: dill<0.3.9,>=0.3.0 in /usr/local/lib/python3.10/site-packages (from datasets) (0.3.8)\n",
|
18 |
-
"Requirement already satisfied: fsspec[http]<=2024.3.1,>=2023.1.0 in /usr/local/lib/python3.10/site-packages (from datasets) (2024.3.1)\n",
|
19 |
-
"Requirement already satisfied: packaging in /usr/local/lib/python3.10/site-packages (from datasets) (24.0)\n",
|
20 |
-
"Requirement already satisfied: filelock in /usr/local/lib/python3.10/site-packages (from datasets) (3.14.0)\n",
|
21 |
-
"Requirement already satisfied: pandas in /usr/local/lib/python3.10/site-packages (from datasets) (2.2.2)\n",
|
22 |
-
"Requirement already satisfied: requests>=2.32.1 in /usr/local/lib/python3.10/site-packages (from datasets) (2.32.3)\n",
|
23 |
-
"Requirement already satisfied: tqdm>=4.62.1 in /usr/local/lib/python3.10/site-packages (from datasets) (4.66.4)\n",
|
24 |
"Requirement already satisfied: pyarrow>=12.0.0 in /usr/local/lib/python3.10/site-packages (from datasets) (16.1.0)\n",
|
|
|
25 |
"Requirement already satisfied: pyarrow-hotfix in /usr/local/lib/python3.10/site-packages (from datasets) (0.6)\n",
|
|
|
|
|
|
|
|
|
|
|
26 |
"Requirement already satisfied: multiprocess in /usr/local/lib/python3.10/site-packages (from datasets) (0.70.16)\n",
|
27 |
"Requirement already satisfied: huggingface-hub>=0.21.2 in /usr/local/lib/python3.10/site-packages (from datasets) (0.23.3)\n",
|
|
|
|
|
|
|
|
|
28 |
"Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.10/site-packages (from aiohttp->datasets) (1.3.1)\n",
|
29 |
-
"Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.10/site-packages (from aiohttp->datasets) (23.2.0)\n",
|
30 |
-
"Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.10/site-packages (from aiohttp->datasets) (1.4.1)\n",
|
31 |
-
"Requirement already satisfied: async-timeout<5.0,>=4.0 in /usr/local/lib/python3.10/site-packages (from aiohttp->datasets) (4.0.3)\n",
|
32 |
"Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.10/site-packages (from aiohttp->datasets) (6.0.5)\n",
|
33 |
"Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.10/site-packages (from aiohttp->datasets) (1.9.4)\n",
|
|
|
|
|
|
|
34 |
"Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.10/site-packages (from huggingface-hub>=0.21.2->datasets) (4.10.0)\n",
|
35 |
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/site-packages (from requests>=2.32.1->datasets) (2024.2.2)\n",
|
36 |
"Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/site-packages (from requests>=2.32.1->datasets) (3.6)\n",
|
37 |
"Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/site-packages (from requests>=2.32.1->datasets) (3.3.2)\n",
|
38 |
"Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/site-packages (from requests>=2.32.1->datasets) (2.2.1)\n",
|
39 |
"Requirement already satisfied: tzdata>=2022.7 in /usr/local/lib/python3.10/site-packages (from pandas->datasets) (2024.1)\n",
|
40 |
-
"Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.10/site-packages (from pandas->datasets) (2024.1)\n",
|
41 |
"Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.10/site-packages (from pandas->datasets) (2.9.0.post0)\n",
|
|
|
42 |
"Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/site-packages (from python-dateutil>=2.8.2->pandas->datasets) (1.16.0)\n",
|
43 |
"\n",
|
44 |
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip available: \u001b[0m\u001b[31;49m22.3.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m24.0\u001b[0m\n",
|
|
|
11 |
"text": [
|
12 |
"Requirement already satisfied: datasets in /usr/local/lib/python3.10/site-packages (2.19.2)\n",
|
13 |
"Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.10/site-packages (from datasets) (1.26.4)\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
"Requirement already satisfied: pyarrow>=12.0.0 in /usr/local/lib/python3.10/site-packages (from datasets) (16.1.0)\n",
|
15 |
+
"Requirement already satisfied: fsspec[http]<=2024.3.1,>=2023.1.0 in /usr/local/lib/python3.10/site-packages (from datasets) (2024.3.1)\n",
|
16 |
"Requirement already satisfied: pyarrow-hotfix in /usr/local/lib/python3.10/site-packages (from datasets) (0.6)\n",
|
17 |
+
"Requirement already satisfied: requests>=2.32.1 in /usr/local/lib/python3.10/site-packages (from datasets) (2.32.3)\n",
|
18 |
+
"Requirement already satisfied: dill<0.3.9,>=0.3.0 in /usr/local/lib/python3.10/site-packages (from datasets) (0.3.8)\n",
|
19 |
+
"Requirement already satisfied: aiohttp in /usr/local/lib/python3.10/site-packages (from datasets) (3.9.5)\n",
|
20 |
+
"Requirement already satisfied: filelock in /usr/local/lib/python3.10/site-packages (from datasets) (3.14.0)\n",
|
21 |
+
"Requirement already satisfied: packaging in /usr/local/lib/python3.10/site-packages (from datasets) (24.0)\n",
|
22 |
"Requirement already satisfied: multiprocess in /usr/local/lib/python3.10/site-packages (from datasets) (0.70.16)\n",
|
23 |
"Requirement already satisfied: huggingface-hub>=0.21.2 in /usr/local/lib/python3.10/site-packages (from datasets) (0.23.3)\n",
|
24 |
+
"Requirement already satisfied: tqdm>=4.62.1 in /usr/local/lib/python3.10/site-packages (from datasets) (4.66.4)\n",
|
25 |
+
"Requirement already satisfied: xxhash in /usr/local/lib/python3.10/site-packages (from datasets) (3.4.1)\n",
|
26 |
+
"Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/site-packages (from datasets) (6.0.1)\n",
|
27 |
+
"Requirement already satisfied: pandas in /usr/local/lib/python3.10/site-packages (from datasets) (2.2.2)\n",
|
28 |
"Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.10/site-packages (from aiohttp->datasets) (1.3.1)\n",
|
|
|
|
|
|
|
29 |
"Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.10/site-packages (from aiohttp->datasets) (6.0.5)\n",
|
30 |
"Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.10/site-packages (from aiohttp->datasets) (1.9.4)\n",
|
31 |
+
"Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.10/site-packages (from aiohttp->datasets) (1.4.1)\n",
|
32 |
+
"Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.10/site-packages (from aiohttp->datasets) (23.2.0)\n",
|
33 |
+
"Requirement already satisfied: async-timeout<5.0,>=4.0 in /usr/local/lib/python3.10/site-packages (from aiohttp->datasets) (4.0.3)\n",
|
34 |
"Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.10/site-packages (from huggingface-hub>=0.21.2->datasets) (4.10.0)\n",
|
35 |
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/site-packages (from requests>=2.32.1->datasets) (2024.2.2)\n",
|
36 |
"Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/site-packages (from requests>=2.32.1->datasets) (3.6)\n",
|
37 |
"Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/site-packages (from requests>=2.32.1->datasets) (3.3.2)\n",
|
38 |
"Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/site-packages (from requests>=2.32.1->datasets) (2.2.1)\n",
|
39 |
"Requirement already satisfied: tzdata>=2022.7 in /usr/local/lib/python3.10/site-packages (from pandas->datasets) (2024.1)\n",
|
|
|
40 |
"Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.10/site-packages (from pandas->datasets) (2.9.0.post0)\n",
|
41 |
+
"Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.10/site-packages (from pandas->datasets) (2024.1)\n",
|
42 |
"Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/site-packages (from python-dateutil>=2.8.2->pandas->datasets) (1.16.0)\n",
|
43 |
"\n",
|
44 |
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip available: \u001b[0m\u001b[31;49m22.3.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m24.0\u001b[0m\n",
|