Conversion of a private model doesn't work

#3
by xi0v - opened

Trying to convert a model that is set to private doesn't work.
Can you implement it?

I think it is possible. I'll try.

I tried to put it on.
I've changed the download section, so it might not be working...

yeah I tried and seems like it doesn't work

Apparently, the private repo itself is not visible from the download tool used internally. Even if there is a token, it has not been breached.
It's sleepy time over here, so I'll try to make it tomorrow.

It's not difficult. In fact, I'm using the official HF tool for some purposes.

I think it's finished. As an added bonus, I think the download from HF is now faster.

Thank you!
I'll check it out now

xi0v changed discussion status to closed

It worked when I tried to convert one model

I tried to convert another one but it errored and I got this

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 536, in process_events
    response = await route_utils.call_process_api(
  File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
    output = await app.get_blocks().process_api(
  File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1935, in process_api
    result = await self.call_function(
  File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1520, in call_function
    prediction = await anyio.to_thread.run_sync(  # type: ignore
  File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
  File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread
    return await future
  File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 859, in run
    result = context.run(func, *args)
  File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 826, in wrapper
    response = f(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 826, in wrapper
    response = f(*args, **kwargs)
  File "/home/user/app/convert_url_to_diffusers_sdxl_gr.py", line 346, in convert_url_to_diffusers_repo
    new_path = convert_url_to_diffusers_sdxl(dl_url, civitai_key, hf_token, is_upload_sf, half, vae, scheduler, lora_dict, False)
  File "/home/user/app/convert_url_to_diffusers_sdxl_gr.py", line 276, in convert_url_to_diffusers_sdxl
    new_vae_file = get_download_file(temp_dir, vae, civitai_key)
TypeError: get_download_file() missing 1 required positional argument: 'hf_token'

Even though I typed my token in the token field

xi0v changed discussion status to open

The error message is really helpful, as is the report.
It was buggy because it failed to pass the token when changing the VAE. ๐Ÿ˜…
Fixed.

Thank you very much ๐Ÿ™๐Ÿป

xi0v changed discussion status to closed

Sign up or log in to comment