Spaces:
Runtime error
Runtime error
jiarongqiu commited on
Commit ·
524fd18
1
Parent(s): dc08fc3
round
Browse files- service/api.py +7 -7
service/api.py
CHANGED
|
@@ -5,7 +5,7 @@ import requests
|
|
| 5 |
from typing import Any
|
| 6 |
from .llm import search_bot
|
| 7 |
from .vector_store import vector_store
|
| 8 |
-
from .logger import logger
|
| 9 |
from util.time import TimeUtil
|
| 10 |
|
| 11 |
|
|
@@ -26,7 +26,7 @@ class API():
|
|
| 26 |
if name == '' or url == '':
|
| 27 |
continue
|
| 28 |
res.append({"name":name,"url":url})
|
| 29 |
-
logger.write_log({"query":query,"api":'auto_complete',"result":res})
|
| 30 |
return res
|
| 31 |
|
| 32 |
|
|
@@ -51,11 +51,11 @@ class API():
|
|
| 51 |
for i in answer:
|
| 52 |
text += i
|
| 53 |
yield i
|
| 54 |
-
logger.write_log({
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
|
| 60 |
|
| 61 |
def get_filecoin_price(self):
|
|
|
|
| 5 |
from typing import Any
|
| 6 |
from .llm import search_bot
|
| 7 |
from .vector_store import vector_store
|
| 8 |
+
# from .logger import logger
|
| 9 |
from util.time import TimeUtil
|
| 10 |
|
| 11 |
|
|
|
|
| 26 |
if name == '' or url == '':
|
| 27 |
continue
|
| 28 |
res.append({"name":name,"url":url})
|
| 29 |
+
# logger.write_log({"query":query,"api":'auto_complete',"result":res})
|
| 30 |
return res
|
| 31 |
|
| 32 |
|
|
|
|
| 51 |
for i in answer:
|
| 52 |
text += i
|
| 53 |
yield i
|
| 54 |
+
# logger.write_log({
|
| 55 |
+
# "query":query,
|
| 56 |
+
# "api":'search',
|
| 57 |
+
# "source":source,
|
| 58 |
+
# 'answer':text})
|
| 59 |
|
| 60 |
|
| 61 |
def get_filecoin_price(self):
|