Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -93,19 +93,33 @@ def handle(wisemodel_link, hf_repo_id):
|
|
93 |
|
94 |
with gr.Blocks() as demo:
|
95 |
gr.Markdown('''
|
|
|
|
|
96 |
This space uploads model from WiseModel to Huggingface.
|
97 |
|
|
|
98 |
**Please make sure that you're the owner of the repo or have permission from the owner to do so!**
|
99 |
|
|
|
|
|
100 |
# How to use this Space?
|
101 |
-
|
|
|
|
|
|
|
|
|
102 |
- Create your target model repo on HF. This step needs to be done manually. The Space doesn't do create an empty repo for you.
|
|
|
|
|
103 |
- In your own private Space, fill in information below.
|
|
|
|
|
104 |
- Click submit then watch for output in container log for progress.
|
|
|
105 |
- Create README.md file (since the metadata is not compatible with HF)
|
106 |
''')
|
107 |
|
108 |
-
wisemodel_link = gr.Textbox(label="Copy the git download link from the model detail page of wisemodel ")
|
109 |
hf_repo_id = gr.Textbox(label="Target HF Model Repo ID (case sensitive). \nPlease make sure that this model has already been created")
|
110 |
with gr.Row():
|
111 |
button = gr.Button("Submit", variant="primary")
|
|
|
93 |
|
94 |
with gr.Blocks() as demo:
|
95 |
gr.Markdown('''
|
96 |
+
|
97 |
+
这个space可以把已经发布在wisemodel的模型、数据集推送到Huggingface的相应repo。
|
98 |
This space uploads model from WiseModel to Huggingface.
|
99 |
|
100 |
+
**请确认您是huggingface上相应repo的创建者,拥有repo的写入的权限,否则会报错!**
|
101 |
**Please make sure that you're the owner of the repo or have permission from the owner to do so!**
|
102 |
|
103 |
+
|
104 |
+
# 如何使用这个空间?
|
105 |
# How to use this Space?
|
106 |
+
|
107 |
+
- 点击右上角settings后面的“…”按钮,选择“Duplicate this Space”创建一个私有的space,同时输入wisemodel的token(公开模型不填写,私有模型必填),以及Huggingface的token,确保有相应repo写入的权限。
|
108 |
+
- Duplicate this Space and providing WiseModel token (optional) and your read/write HF token (mandatory).
|
109 |
+
|
110 |
+
- 在HF上创建目标repo,这一步是必须的!
|
111 |
- Create your target model repo on HF. This step needs to be done manually. The Space doesn't do create an empty repo for you.
|
112 |
+
|
113 |
+
- 在刚刚自己创建的私有space里填写相应的信息,wisemodel的git clone链接,以及Huggingface的repo名称。
|
114 |
- In your own private Space, fill in information below.
|
115 |
+
|
116 |
+
- 点击submit按钮,然后可以通过logs按钮查看进度。
|
117 |
- Click submit then watch for output in container log for progress.
|
118 |
+
|
119 |
- Create README.md file (since the metadata is not compatible with HF)
|
120 |
''')
|
121 |
|
122 |
+
wisemodel_link = gr.Textbox(label="Copy the git download link from the model detail page of wisemodel(从wisemodel上获取该模型的完整git clone链接) ")
|
123 |
hf_repo_id = gr.Textbox(label="Target HF Model Repo ID (case sensitive). \nPlease make sure that this model has already been created")
|
124 |
with gr.Row():
|
125 |
button = gr.Button("Submit", variant="primary")
|