Spaces:
Sleeping
Sleeping
arabellastrange
commited on
Commit
·
3152165
1
Parent(s):
e750b39
added main func
Browse files
app.py
CHANGED
@@ -84,8 +84,8 @@ def google_search_chat(message, history):
|
|
84 |
else:
|
85 |
yield from generate_chat_response_with_history(message, history)
|
86 |
|
87 |
-
def run_searchbot():
|
88 |
|
|
|
89 |
logging.root.setLevel(logging.INFO)
|
90 |
filehandler = logging.FileHandler(f'../logs/agent_log_{asctime().replace(" ", "").lower().replace(":", "")}.log',
|
91 |
'a')
|
|
|
84 |
else:
|
85 |
yield from generate_chat_response_with_history(message, history)
|
86 |
|
|
|
87 |
|
88 |
+
if __name__ == '__main__':
|
89 |
logging.root.setLevel(logging.INFO)
|
90 |
filehandler = logging.FileHandler(f'../logs/agent_log_{asctime().replace(" ", "").lower().replace(":", "")}.log',
|
91 |
'a')
|