Space won't start
So I made some code changes in my HuggingFace space today. After working for some seconds, i got the following error:Screenshot 2024-12-27 105709789×169 5.09 KBAny idea how to fix this? My space won’t restart and does not give any errors in order to see whats wrong in the logs. Thank you for your time
2024-12-27T09:15:50Z
In many cases, the HF space is operated in a way where the main program runs as a server process and the GUI accesses it. If the server process crashes, I think that error will occur. The cause is various, but it is when you use up all the RAM, including the virtual RAM.However, there is also the possibility of a new HF bug.
2024-12-27T09:24:03Z
Ok. I’ll have that in mind. I will try to recreate the issue just to make sure
2024-12-27T09:50:44Z
Small update. I created a new space in order to test this. It worked the first time. I deleted a line of code and then it got stuck in the building process. I tried a restart and the same thing occured. No logs were provided either.Here’s the code in the app.py file:from pyngrok import ngrokimport gradio as grdef generate_response(instruction):“”“Generates a response using your fine-tuned model.”“”##FastLanguageModel.for_inference(model) # Enable native 2x faster inference within the functionprompt = f"“”### Instruction:Answer the provided question with the knowledge provided to you#######  Question:{instruction}#######  Answer:“”"return promptdef greet(user_question):response = generate_response(user_question)return f"{response}!"####### Create a Gradio interface with text input and outputgr.Interface(fn=greet, inputs=“text”, outputs=“text”).launch(share=True,debug=True)
2024-12-27T09:55:46Z
Tunneling tool might be targeted for ban…
2024-12-27T10:38:41Z
So the deletion of the ngrok library from the requirements and app files solved the issue. This is suprising to me because it worked before with that. Thanks nonetheless
2024-12-27T22:38:59Z
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.