Spaces:
Running
on
Zero
Running
on
Zero
fda
Browse files
chat_history.db
CHANGED
Binary files a/chat_history.db and b/chat_history.db differ
|
|
chroma/6be188e8-482c-4e1e-8fbd-8157045b1e21/length.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4000
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fc19b1997119425765295aeab72d76faa6927d4f83985d328c26f20468d6cc76
|
3 |
size 4000
|
chroma/chroma.sqlite3
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1101824
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2ee6b91fcdb822daaffc17a5d015e47d20ec4c1b5b20781b6d200920468c0a85
|
3 |
size 1101824
|
controllers/gpt_enginner20240624094443
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 7a7c46d8d4105d7489b18ff1788ba017ee7bf842
|
mysite/interpreter/process.py
CHANGED
@@ -210,9 +210,9 @@ def validate_signature(body: str, signature: str, secret: str) -> bool:
|
|
210 |
).digest()
|
211 |
expected_signature = base64.b64encode(hash).decode("utf-8")
|
212 |
return hmac.compare_digest(expected_signature, signature)
|
213 |
-
|
214 |
#プロセスの実行
|
215 |
-
def no_process_file(prompt, foldername):
|
216 |
set_environment_variables()
|
217 |
try:
|
218 |
proc = subprocess.Popen(["mkdir", f"{BASE_PATH}{foldername}"])
|
@@ -257,7 +257,7 @@ def no_process_file(prompt, foldername):
|
|
257 |
link_text = "ステップ1 githubで プログラムを確認する githubだと相談者が沢山いるのでわからなければ聞いてみる "
|
258 |
link_url = url
|
259 |
|
260 |
-
send_google_chat_card(webhook_url, title, subtitle, link_text, link_url)
|
261 |
#insert data to db
|
262 |
#test_set_lide(prompt,url)
|
263 |
print(f"Processed Content:success ")
|
|
|
210 |
).digest()
|
211 |
expected_signature = base64.b64encode(hash).decode("utf-8")
|
212 |
return hmac.compare_digest(expected_signature, signature)
|
213 |
+
from mysite.interpreter.google_chat import send_google_chat_card,send_google_chat_card_thread
|
214 |
#プロセスの実行
|
215 |
+
def no_process_file(prompt, foldername,thread_name=None):
|
216 |
set_environment_variables()
|
217 |
try:
|
218 |
proc = subprocess.Popen(["mkdir", f"{BASE_PATH}{foldername}"])
|
|
|
257 |
link_text = "ステップ1 githubで プログラムを確認する githubだと相談者が沢山いるのでわからなければ聞いてみる "
|
258 |
link_url = url
|
259 |
|
260 |
+
send_google_chat_card,send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
|
261 |
#insert data to db
|
262 |
#test_set_lide(prompt,url)
|
263 |
print(f"Processed Content:success ")
|
mysite/routers/fastapi.py
CHANGED
@@ -274,7 +274,7 @@ def setup_webhook_routes(app: FastAPI):
|
|
274 |
"""
|
275 |
#########################################################################
|
276 |
## excute create program
|
277 |
-
res_no_process = no_process_file(prompt_for_create_system+res, "gpt_enginner"+ yyyymmddhis)
|
278 |
# execute open interpreter
|
279 |
#########################################################################
|
280 |
full_response,history = chat_with_interpreter_no_stream(prompt_for_create_system+"\r\n"+res)
|
|
|
274 |
"""
|
275 |
#########################################################################
|
276 |
## excute create program
|
277 |
+
res_no_process = no_process_file(prompt_for_create_system+res, "gpt_enginner"+ yyyymmddhis,thread_name)
|
278 |
# execute open interpreter
|
279 |
#########################################################################
|
280 |
full_response,history = chat_with_interpreter_no_stream(prompt_for_create_system+"\r\n"+res)
|