Spaces:
Running
on
Zero
Running
on
Zero
dfa
Browse files- babyagi/classesa/diamond.py +3 -2
- mysite/routers/fastapi.py +2 -2
babyagi/classesa/diamond.py
CHANGED
@@ -63,7 +63,7 @@ class ProductDatabase:
|
|
63 |
results = cursor.fetchall()
|
64 |
return results
|
65 |
|
66 |
-
def calculate(
|
67 |
# データベース接続情報
|
68 |
DATABASE_URL = "postgresql://miyataken999:yz1wPf4KrWTm@ep-odd-mode-93794521.us-east-2.aws.neon.tech/neondb?sslmode=require"
|
69 |
|
@@ -102,9 +102,10 @@ def calculate(x,y,z,c):
|
|
102 |
query_text = "2.03Very GoodJSI262.058.08.068.125.05"
|
103 |
|
104 |
query_text = "2.03Very GoodJSI2"
|
|
|
105 |
|
106 |
#query_text = "2.03-Very Good-J-SI2-62.2-58.0-7.27-7.33-4.55"
|
107 |
-
results = db.search_similar_vectors(query_text)
|
108 |
res_all = ""
|
109 |
print("Search results:")
|
110 |
for result in results:
|
|
|
63 |
results = cursor.fetchall()
|
64 |
return results
|
65 |
|
66 |
+
def calculate(query):
|
67 |
# データベース接続情報
|
68 |
DATABASE_URL = "postgresql://miyataken999:yz1wPf4KrWTm@ep-odd-mode-93794521.us-east-2.aws.neon.tech/neondb?sslmode=require"
|
69 |
|
|
|
102 |
query_text = "2.03Very GoodJSI262.058.08.068.125.05"
|
103 |
|
104 |
query_text = "2.03Very GoodJSI2"
|
105 |
+
#query
|
106 |
|
107 |
#query_text = "2.03-Very Good-J-SI2-62.2-58.0-7.27-7.33-4.55"
|
108 |
+
results = db.search_similar_vectors(query)#query_text)
|
109 |
res_all = ""
|
110 |
print("Search results:")
|
111 |
for result in results:
|
mysite/routers/fastapi.py
CHANGED
@@ -182,13 +182,13 @@ def setup_webhook_routes(app: FastAPI):
|
|
182 |
https://lin.ee/c6inM4V
|
183 |
|
184 |
"""
|
185 |
-
|
186 |
promps,prompt_res = prompt_genalate("返信は日本語で答えて下さい "+text,prompt2)
|
187 |
#test_set_lide(text,"a1")
|
188 |
#no_process_file(text, "ai")
|
189 |
from babyagi.classesa.diamond 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"
|
|
|
182 |
https://lin.ee/c6inM4V
|
183 |
|
184 |
"""
|
185 |
+
# 査定用のプロンプト
|
186 |
promps,prompt_res = prompt_genalate("返信は日本語で答えて下さい "+text,prompt2)
|
187 |
#test_set_lide(text,"a1")
|
188 |
#no_process_file(text, "ai")
|
189 |
from babyagi.classesa.diamond import calculate
|
190 |
title = f""" ダイヤ計算の実行 cut calat clarity weght """
|
191 |
+
calculate("2.03Very GoodJSI2")
|
192 |
subtitle = prompt_res
|
193 |
link_text = "データを確認する"
|
194 |
link_url = "https://kenken999-php.hf.space/diamondprice_list.php"
|