-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
admin
committed
May 13, 2024
1 parent
cd92b3d
commit 59c03d8
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# gradio内网加载慢的问题 | ||
|
||
|
||
版本4.29 | ||
目录位置/path to conda/anaconda3/envs/conda name/lib/python3.xx/site-packages/gradio | ||
1. 修改 themes/utils/fonts.py | ||
搜索googleapis | ||
修改为 return ''#f'....... | ||
|
||
2. 修改templates/frontend/index.html | ||
搜索cdnjs | ||
修改为src="assets/iframeResizer.contentWindow.min.js"//"http://cdnjs....... | ||
|
||
3. 代码中添加os.environ['GRADIO_ANALYTICS_ENABLED']='False' | ||
|
||
|
||
版本3.36.1 | ||
之前搜到过一个网页,照着改就行了现在找不到了。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
1. Transformers | ||
2. peft | ||
3. deepspeed | ||
4. Accelerate | ||
5. FasterTransformer->TensorRT-LLM |