-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrain.py
More file actions
28 lines (20 loc) · 655 Bytes
/
Copy pathbrain.py
File metadata and controls
28 lines (20 loc) · 655 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# from webscout import PhindSearch as brain
# ai = brain(
# is_conversation=True,
# max_tokens=800,
# timeout=30,
# intro='J.A.R.V.I.S',
# filepath=r"C:\Users\chatu\Desktop\J.A.R.V.I.S\chat_hystory.txt",
# update_file=True,
# proxies={},
# history_offset=10250,
# act=None,
# )
# def Main_Brain(text):
# r = ai.chat(text)
# return r
from webscout import PhindSearch
def Main_Brain(text):
ai = PhindSearch(quiet=True, filepath=r"E:\J.A.R.V.I.S-main\J.A.R.V.I.S-main\chat_hystory.txt",is_conversation=True)
res = ai.chat(text) # internel stream is not available for this Privider
return res