Spaces:
Runtime error
Runtime error
Efreak
commited on
Commit
·
59e92ce
1
Parent(s):
21cc9c3
these are definitely just typos. yup. thats right, typos.
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def duplicate(source_url, preview_url, model_id, dst_repo, token, repo_type, nsf
|
|
49 |
folder_path=dir,
|
50 |
path_in_repo=repopath,
|
51 |
repo_id=dst_repo,
|
52 |
-
repo_type=
|
53 |
create_pr=make_pr
|
54 |
)
|
55 |
|
@@ -87,7 +87,7 @@ interface = gr.Interface(
|
|
87 |
gr.Textbox(label="Source URL", info="Source URL for model file. FP32 unpruned preferred, but you can upload multiple versions. Safetensors preferred, but not really important.", placeholder="https://civitai.com/api/download/models/4324322534?garbageextrastuff"),
|
88 |
gr.Textbox(label="Preview URL", info="URL for model preview on civitai. High resolution with generation data preferred, you can upload an alternate separately without the .preview part in the filename, this will override the preview. Will be renamed to modelprefix.preview.png, regardless of actual format; this is what civitai unofficial extemsion wants.", placeholder="https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/df8e24d7-4094-42cf-0d8f-a50afd28f800/00143-3805918203.jpeg"),
|
89 |
gr.Textbox(label="Model ID", info="You can get this from the source URL", placeholder="model ID (e.g. 4324322534)"),
|
90 |
-
gr.Textbox(label="Destination repository",value="
|
91 |
gr.Textbox(label="Access Token", info="Write access token (write access required)", type="password"),
|
92 |
gr.Dropdown(label="File type", info="What type of model is this? If it's not a stable diffusion model, Lora, lycoris, or embedding, upload it separately. (for example, if you've got a VAE)", choices=FILE_TYPES, value="Stable Diffusion Model"),
|
93 |
gr.Checkbox(label="NSFW model?", info="check if the model is intended for nsfw, or creates such images on its own. Places file in the /nsfw subdirectory.",value=False),
|
|
|
49 |
folder_path=dir,
|
50 |
path_in_repo=repopath,
|
51 |
repo_id=dst_repo,
|
52 |
+
repo_type="model",
|
53 |
create_pr=make_pr
|
54 |
)
|
55 |
|
|
|
87 |
gr.Textbox(label="Source URL", info="Source URL for model file. FP32 unpruned preferred, but you can upload multiple versions. Safetensors preferred, but not really important.", placeholder="https://civitai.com/api/download/models/4324322534?garbageextrastuff"),
|
88 |
gr.Textbox(label="Preview URL", info="URL for model preview on civitai. High resolution with generation data preferred, you can upload an alternate separately without the .preview part in the filename, this will override the preview. Will be renamed to modelprefix.preview.png, regardless of actual format; this is what civitai unofficial extemsion wants.", placeholder="https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/df8e24d7-4094-42cf-0d8f-a50afd28f800/00143-3805918203.jpeg"),
|
89 |
gr.Textbox(label="Model ID", info="You can get this from the source URL", placeholder="model ID (e.g. 4324322534)"),
|
90 |
+
gr.Textbox(label="Destination repository",value="mirroring/civitai_mirror"),
|
91 |
gr.Textbox(label="Access Token", info="Write access token (write access required)", type="password"),
|
92 |
gr.Dropdown(label="File type", info="What type of model is this? If it's not a stable diffusion model, Lora, lycoris, or embedding, upload it separately. (for example, if you've got a VAE)", choices=FILE_TYPES, value="Stable Diffusion Model"),
|
93 |
gr.Checkbox(label="NSFW model?", info="check if the model is intended for nsfw, or creates such images on its own. Places file in the /nsfw subdirectory.",value=False),
|