mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
docs
This commit is contained in:
parent
5932a44182
commit
1d7b20eb6a
11
docs/main.js
11
docs/main.js
@ -166,4 +166,13 @@ window.onpopstate = function (event) {
|
||||
function tohomeurl() {
|
||||
var hostname = window.location.hostname;
|
||||
window.open(window.location.protocol + '//' + hostname.substring(5));
|
||||
}
|
||||
}
|
||||
|
||||
function NGROK_TOKEN() {
|
||||
window.open('https://dashboard.ngrok.com/get-started/your-authtoken', '_blank');
|
||||
window.open('https://image.lunatranslator.org/zh/sakurallm/ngrok2.png', '_blank');
|
||||
}
|
||||
function NGROK_DOMAIN() {
|
||||
window.open('https://dashboard.ngrok.com/cloud-edge/domains', '_blank');
|
||||
window.open('https://image.lunatranslator.org/zh/sakurallm/ngrok.png', '_blank');
|
||||
}
|
@ -2,40 +2,32 @@
|
||||
|
||||
### 1. 设置内网穿透,以将请求转发给llama.cpp服务
|
||||
|
||||
注册[ngrok](https://ngrok.com/),分别获取[NGROK_TOKEN](https://dashboard.ngrok.com/get-started/your-authtoken)和[NGROK_DOMAIN](https://dashboard.ngrok.com/cloud-edge/domains),以供后面使用。
|
||||
|
||||
|
||||
注册[ngrok](https://ngrok.com/),分别获取<a href="javascript:void(0);" onclick="NGROK_TOKEN();">NGROK_TOKEN</a>和<a href="javascript:void(0);" onclick="NGROK_DOMAIN();">NGROK_DOMAIN</a>,以供后面使用。
|
||||
|
||||
|
||||
也可以不注册**ngrok**,将**NGROK_TOKEN**置为空,则会使用**gradio-tunneling**的随机域名进行内网穿透。
|
||||
|
||||
若使用**ngrok**,并填写了**NGROK_DOMAIN**,则每次运行时将会使用固定的域名进行内网穿透,否则将会使用随机的域名。
|
||||
|
||||
启动后,将会在log中看到本次运行的url接口地址,将url接口地址填写到翻译器中即可:
|
||||
|
||||
<details>
|
||||
<summary>全空,使用gradio-tunneling,随机的域名</summary>
|
||||
<summary>启动后,将会在log中看到本次运行的url接口地址,将url接口地址填写到翻译器中即可</summary>
|
||||
|
||||
全空,使用gradio-tunneling,随机的域名
|
||||
<img src="https://image.lunatranslator.org/zh/sakurallm/tunnel.png">
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>填写NGROK_TOKEN,使用ngrok,随机的域名</summary>
|
||||
填写NGROK_TOKEN,使用ngrok,随机的域名
|
||||
|
||||
<img src="https://image.lunatranslator.org/zh/sakurallm/tunnel3.png">
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>填写NGROK_TOKEN+NGROK_DOMAIN,使用ngrok,固定的域名</summary>
|
||||
|
||||
|
||||
填写NGROK_TOKEN+NGROK_DOMAIN,使用ngrok,固定的域名
|
||||
|
||||
<img src="https://image.lunatranslator.org/zh/sakurallm/tunnel2.png">
|
||||
</details>
|
||||
|
||||
|
||||
<details>
|
||||
<summary>NGROK_TOKEN</summary>
|
||||
<img src="https://image.lunatranslator.org/zh/sakurallm/ngrok2.png">
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>NGROK_DOMAIN</summary>
|
||||
<img src="https://image.lunatranslator.org/zh/sakurallm/ngrok.png">
|
||||
</details>
|
||||
|
||||
|
||||
### 2. 部署到Kaggle/Google Colab
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user