Skip to content

Commit b36fc5e

Browse files
committed
Fix bug
1 parent 5224030 commit b36fc5e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

plugins/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"device": "cuda",
3838
"device_id": "0",
3939
"quantize": 4,
40-
"model": "THUDM/chatglm2-6b",
40+
"model": "E:\\model\\chatglm2-6b",
4141
"port": 8000,
4242
"host": "http://127.0.0.1"
4343
},

plugins/web.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -108,24 +108,24 @@ def redirect_url(url):
108108
return real_url
109109

110110
def search_web(keyword):
111-
if str(get_config['web']['browser_name']).lower() == "chrome":
111+
if str(get_config()['web']['browser_name']).lower() == "chrome":
112112
options = webdriver.ChromeOptions()
113113
options.add_argument('headless')
114114
options.add_experimental_option('excludeSwitches', ['enable-logging'])
115115
options.add_experimental_option('useAutomationExtension', False)
116116
options.add_argument('lang=zh-CN,en-US,en')
117117
driver = webdriver.Chrome(options=options)
118-
elif str(get_config['web']['browser_name']).lower() == "edge":
118+
elif str(get_config()['web']['browser_name']).lower() == "edge":
119119
options = webdriver.EdgeOptions()
120120
options.add_argument('headless')
121121
options.add_experimental_option('excludeSwitches', ['enable-logging'])
122122
driver = webdriver.Edge(options=options)
123-
elif str(get_config['web']['browser_name']).lower() == "firefox":
123+
elif str(get_config()['web']['browser_name']).lower() == "firefox":
124124
options = webdriver.FirefoxOptions()
125125
options.add_argument('headless')
126126
options.add_experimental_option('excludeSwitches', ['enable-logging'])
127127
driver = webdriver.Firefox(options=options)
128-
elif str(get_config['web']['browser_name']).lower() == "ie":
128+
elif str(get_config()['web']['browser_name']).lower() == "ie":
129129
options = webdriver.IeOptions()
130130
options.add_argument('headless')
131131
options.add_experimental_option('excludeSwitches', ['enable-logging'])

0 commit comments

Comments
 (0)