Update requirements.txt
Browse files- requirements.txt +0 -11
requirements.txt
CHANGED
@@ -84,14 +84,3 @@ Werkzeug==3.0.4
|
|
84 |
yapf==0.40.2
|
85 |
zipp==3.20.2
|
86 |
gradio==3.48.0 #add gradio
|
87 |
-
|
88 |
-
The most important changes are:
|
89 |
-
* Removed +cu121: The +cu121 suffix in torch and torchvision indicates CUDA support. Since you're running on CPU, you must remove this. Installing the CUDA versions on a CPU-only environment will cause errors. Just use torch==2.4.1 and torchvision==0.19.1.
|
90 |
-
* Removed onnxruntime-gpu: You should only have onnxruntime (the CPU version) in your requirements. Having the GPU version will likely cause conflicts and is unnecessary on CPU.
|
91 |
-
* Added gradio: I've added gradio==3.48.0 (or the latest version) to the requirements.txt file, as it's essential for your Gradio app.
|
92 |
-
Important Considerations for Hugging Face Spaces:
|
93 |
-
* Model Size: If your model is very large, be aware of Hugging Face Space limits. You might need to use Git LFS (Large File Storage) to manage the model file.
|
94 |
-
* Dependencies: Double-check that all your dependencies are correctly listed in requirements.txt. Even if a library is installed in your local environment, it needs to be explicitly listed in requirements.txt for your Space to work.
|
95 |
-
* Space Hardware: Hugging Face Spaces typically run on CPU instances. Be realistic about the computational demands of your application. If it's very computationally intensive, CPU inference might be slow.
|
96 |
-
* Testing: Test your Space thoroughly after uploading it to Hugging Face to make sure everything works as expected. The build logs on Hugging Face will help you diagnose any issues.
|
97 |
-
* Latest Versions: While I've given specific versions, it's generally good practice to check for the latest stable versions of your dependencies, especially torch, torchvision, and gradio, and update requirements.txt accordingly. However, be mindful of potential compatibility issues between different library versions. It's often a good idea to test with a range of versions to find a stable combination.
|
|
|
84 |
yapf==0.40.2
|
85 |
zipp==3.20.2
|
86 |
gradio==3.48.0 #add gradio
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|