mercury icon indicating copy to clipboard operation
mercury copied to clipboard

Mercury not working in Huggingface

Open stametsm opened this issue 1 year ago • 15 comments

It appears that Mercury is not working in Hugging Face. The worker and websocket are appearing as "disconnected' and 'unknown'. This is both happening for my own site, but appears to be happening on the example pages provided in the documentation as well.

stametsm avatar Jun 27 '23 08:06 stametsm

Hi @stametsm,

Thank you for reporting. Hugging Face might change something in their service ... that's why the problem. I will look at it.

You may try Mercury Cloud - it has free plan too. https://cloud.runmercury.com

Did you manage to build your web app with Mercury?

pplonski avatar Jun 27 '23 09:06 pplonski

I can build it with the mercury cloud app! Unfortunately I use many .dta files that the file limit is reached very quickly. Is there any update about the Hugging face issue?

stametsm avatar Aug 02 '23 06:08 stametsm

Hi @stametsm,

Great that you manage to create app! Yes, there is a limit for files number, you can try to check Pro plan to increase file limit. Additionally, with @aplonska we are working on setting custom style (logo, navbar color) for apps with Pro :)

Anyway, I didn't have time to look into the issue with HF Spaces. Let me check ...

pplonski avatar Aug 02 '23 07:08 pplonski

The client can't connect to the server on HF Spaces. It needs further debugging. After 2.3.2 release I will be back to this issue. image

pplonski avatar Aug 02 '23 07:08 pplonski

Hey @pplonski any timeline to fix this? Much appreciate

stroncod avatar Aug 07 '23 17:08 stroncod

Hi @stroncod , I will do my best to look at it at the last week of August.

pplonski avatar Aug 07 '23 17:08 pplonski

any update on a fix to this issue?

stametsm avatar Oct 26 '23 08:10 stametsm

Sorry @stametsm! Didnt manage to look into it! Please @aplonska take care to make me fix this in November ...

pplonski avatar Oct 26 '23 09:10 pplonski

@pplonski Sorry to bug you again but any change regarding the bug?

stametsm avatar Nov 27 '23 11:11 stametsm

I was looking into this, but couldn't figure out the reason ... Maybe it will work when deployed with Docker?

pplonski avatar Nov 28 '23 08:11 pplonski

I have looked at docker but I would prefer to run the server on something such as huggingface just to have a version that I do not have to host. I have also tried updating the gradio version to the newest version but that does not seem to help. I have also noticed that after a period of time the entire page disconnects and reloads, so I am not sure if that helps debugging in anyway.

stametsm avatar Dec 03 '23 13:12 stametsm

Similar issue with running notebook/app on hugging face. Seems to try loading, then no progress, then reloads, and repeats.

image

codejoey avatar Feb 22 '24 22:02 codejoey

Same for me! My application is visible here: https://huggingface.co/spaces/informatica92/BGG-comment-summarizer

image

As you can see from the UI, the worker is always in "waiting", the application keep restarting and the logs (with --verbose) look like this: image

informatica92 avatar Apr 03 '24 12:04 informatica92

I was looking into this, but couldn't figure out the reason ... Maybe it will work when deployed with Docker?

I also tried using HuggingFace with Docker (single Dockerfile, not Docker compose) but the error is exactly the same

informatica92 avatar Apr 08 '24 12:04 informatica92

Ah sorry Marco! I have no idea what might be the issue ... maybe try to ask on HF forum?

pplonski avatar Apr 08 '24 12:04 pplonski