You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

运行OmniParser的gradio_demo.py时Gradio共享链接创建失败求助

运行OmniParser的gradio_demo.py时Gradio共享链接创建失败求助

我最近在尝试使用微软的OmniParser,但是运行gradio_demo.py的时候遇到了共享链接创建失败的问题,下面是整个过程和目前的状态,希望能得到大家的帮助:

第一次运行脚本时的错误信息

(omni) C:\Users\ingeun\OmniParser>python gradio_demo.py --icon_detect_model weights/icon_detect_v1_5/model_v1_5.pt --icon_caption_model florence2
Florence2LanguageForConditionalGeneration has generative capabilities, as `prepare_inputs_for_generation` is explicitly overwritten. However, it doesn't directly inherit from `GenerationMixin`. From 👀v4.50👀 onwards, `PreTrainedModel` will NOT inherit from `GenerationMixin`, and this model will lose the ability to call `generate` and other related functions.
  - If you're using `trust_remote_code=True`, you can get rid of this warning by loading the model with an auto class. See https://huggingface.co/docs/transformers/en/model_doc/auto#auto-classes
  - If you are the owner of the model architecture code, please modify your model class such that it inherits from `GenerationMixin` (after `PreTrainedModel`, otherwise you'll get an exception).
  - If you are not the owner of the model architecture class, please contact the model code owner to update it.
정보: 제공된 패턴에 해당되는 파일을 찾지 못했습니다.
* Running on local URL:  http://0.0.0.0:7861

Could not create share link. Missing file: C:\Users\ingeun.hwang\AppData\Local\aipforge\envs\omni\Lib\site-packages\gradio\frpc_windows_amd64_v0.3.

Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps:

1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.3/frpc_windows_amd64.exe
2. Rename the downloaded file to: frpc_windows_amd64_v0.3
3. Move the file to this location: C:\Users\ingeun\AppData\Local\aipforge\envs\omni\Lib\site-packages\gradio

我按照提示执行的操作

我根据错误提示里的步骤,手动下载了对应的文件,修改了文件名并移动到指定路径,操作完成后文件的属性信息如下:

file name : frpc_windows_amd64_v0.3.exe

file loaction : C:\Users\ingeun\AppData\Local\aipforge\envs\omni\Lib\site-packages\gradio

再次运行脚本后的错误信息

原本提示缺失frpc文件的错误信息消失了,但还是无法创建共享链接,新的运行输出如下:

(omni) C:\Users\ingeun.hwang\OmniParser>python gradio_demo.py --icon_detect_model weights/icon_detect_v1_5/model_v1_5.pt --icon_caption_model florence2
Florence2LanguageForConditionalGeneration has generative capabilities, as `prepare_inputs_for_generation` is explicitly overwritten. However, it doesn't directly inherit from `GenerationMixin`. From 👀v4.50👀 onwards, `PreTrainedModel` will NOT inherit from `GenerationMixin`, and this model will lose the ability to call `generate` and other related functions.
  - If you're using `trust_remote_code=True`, you can get rid of this warning by loading the model with an auto class. See https://huggingface.co/docs/transformers/en/model_doc/auto#auto-classes
  - If you are the owner of the model architecture code, please modify your model class such that it inherits from `GenerationMixin` (after `PreTrainedModel`, otherwise you'll get an exception).
  - If you are not the owner of the model architecture class, please contact the model code owner to update it.
Running on local URL:  http://0.0.0.0:7861

Could not create share link, please check your internet connection.

现在本地服务能正常运行,但共享链接一直无法创建,我已经按照提示处理了frpc文件的问题,却还是没解决,实在不知道该怎么办了,有没有朋友遇到过类似的问题,能给我一些建议吗?

备注:内容来源于stack exchange,提问作者황인근

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.14 12:29:31