Spaces:
Running
Running
vlff李飞飞
commited on
Commit
·
f001d2a
1
Parent(s):
6007e64
update oai
Browse files- Dockerfile +1 -1
- browser_qwen/src/popup.js +2 -2
Dockerfile
CHANGED
@@ -12,4 +12,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
12 |
COPY . .
|
13 |
RUN mkdir -p .cache/huggingface/models--Qwen--Qwen-1_8B-Chat && mkdir -p ./.cache/huggingface/models--Qwen--Qwen-1_8B-Chat
|
14 |
RUN chmod 777 -R ./* && chmod 777 -R ./.cache/*
|
15 |
-
CMD ["python", "run_server.py", "--llm", "Qwen/Qwen-1_8B-Chat", "--server_host", "0.0.0.0"]
|
|
|
12 |
COPY . .
|
13 |
RUN mkdir -p .cache/huggingface/models--Qwen--Qwen-1_8B-Chat && mkdir -p ./.cache/huggingface/models--Qwen--Qwen-1_8B-Chat
|
14 |
RUN chmod 777 -R ./* && chmod 777 -R ./.cache/*
|
15 |
+
CMD ["python", "run_server.py", "--llm", "Qwen/Qwen-1_8B-Chat", "--model_server", "http://127.0.0.1:7905/v1", "--server_host", "0.0.0.0"]
|
browser_qwen/src/popup.js
CHANGED
@@ -29,9 +29,9 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
29 |
chrome.storage.local.get(['database_host'], function(result) {
|
30 |
if (result.database_host) {
|
31 |
console.log('database_host currently is ' + result.database_host);
|
32 |
-
popup_url = "
|
33 |
} else {
|
34 |
-
popup_url = "
|
35 |
}
|
36 |
var iframe = document.createElement('iframe');
|
37 |
iframe.src = popup_url;
|
|
|
29 |
chrome.storage.local.get(['database_host'], function(result) {
|
30 |
if (result.database_host) {
|
31 |
console.log('database_host currently is ' + result.database_host);
|
32 |
+
popup_url = "https://"+result.database_host;
|
33 |
} else {
|
34 |
+
popup_url = "https://taohongxiu-qwen-agent.hf.space/";
|
35 |
}
|
36 |
var iframe = document.createElement('iframe');
|
37 |
iframe.src = popup_url;
|