Skip to content

Commit

Permalink
解决国内无法下载问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfater committed Jan 25, 2024
1 parent 5210c4f commit 18f63cf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://inlang.com/schema/inlang-message-format",
"drop_zone": "Click or drag here",
"try_it_images": "Try it:",
"feedback": "Feedback",
"feedback": "About me",
"start_new": "Start new",
"bruch_size": "Brush Size",
"original": "Original",
Expand Down
2 changes: 1 addition & 1 deletion messages/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://inlang.com/schema/inlang-message-format",
"drop_zone": "点击 或者 拖拽到这里",
"try_it_images": "试一试:",
"feedback": "反馈",
"feedback": "联系作者",
"start_new": "开始新的",
"bruch_size": "刷子大小",
"original": "原图",
Expand Down
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function App() {
<div className="flex flex-col sm:flex-row pt-10 items-center justify-center cursor-pointer">
<span className="text-gray-500">{m.try_it_images()}</span>
<div className="flex space-x-2 sm:space-x-4 px-4">
{['dog', 'car', 'bird', 'bag', 'jacket', 'shoe', 'paris'].map(
{['bag', 'dog', 'car', 'bird', 'jacket', 'shoe', 'paris'].map(
image => (
<div
key={image}
Expand Down
4 changes: 2 additions & 2 deletions src/adapters/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function getModel(modelType: modelType) {
name: 'migan-pipeline-v2',
url: 'https://huggingface.co/andraniksargsyan/migan/resolve/main/migan_pipeline_v2.onnx',
backupUrl:
'https://modelscope.cn/api/v1/models/lxfater/inpaint-web/repo?Revision=master&FilePath=migan_pipeline_v2.onnx',
'https://worker-share-proxy-01f5.lxfater.workers.dev/andraniksargsyan/migan/resolve/main/migan_pipeline_v2.onnx',
},
]
const currentModel = modelList[2]
Expand All @@ -39,7 +39,7 @@ function getModel(modelType: modelType) {
name: 'realesrgan-x4',
url: 'https://huggingface.co/lxfater/inpaint-web/resolve/main/realesrgan-x4.onnx',
backupUrl:
'https://modelscope.cn/api/v1/models/lxfater/inpaint-web/repo?Revision=master&FilePath=realesrgan-x4.onnx',
'https://worker-share-proxy-01f5.lxfater.workers.dev/lxfater/inpaint-web/resolve/main/realesrgan-x4.onnx',
},
]
const currentModel = modelList[0]
Expand Down

0 comments on commit 18f63cf

Please sign in to comment.