VINU NAYAK commited on
Commit
b566cd2
·
verified ·
1 Parent(s): d596c04

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -3
README.md CHANGED
@@ -5,7 +5,7 @@ colorFrom: blue
5
  colorTo: purple
6
  sdk: docker
7
  sdk_version: 1.0.0
8
- app_file: main.py
9
  pinned: false
10
  ---
11
 
@@ -22,7 +22,7 @@ pip install -r requirements.txt
22
 
23
  2. Run the server:
24
  ```
25
- uvicorn main:app --host 0.0.0.0 --port 7860
26
  ```
27
 
28
  The server will start on port 7860.
@@ -86,4 +86,21 @@ If you encounter issues with the deployment:
86
  3. Verify the static directory exists and contains the index.html file
87
  4. Check the Hugging Face Spaces logs for any error messages
88
 
89
- The API is configured to provide detailed debugging information to help diagnose issues.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  colorTo: purple
6
  sdk: docker
7
  sdk_version: 1.0.0
8
+ app_file: fallback.py
9
  pinned: false
10
  ---
11
 
 
22
 
23
  2. Run the server:
24
  ```
25
+ uvicorn fallback:app --host 0.0.0.0 --port 7860
26
  ```
27
 
28
  The server will start on port 7860.
 
86
  3. Verify the static directory exists and contains the index.html file
87
  4. Check the Hugging Face Spaces logs for any error messages
88
 
89
+ #### Numba/Rembg Issues
90
+
91
+ If you encounter issues with Numba caching or the rembg library:
92
+
93
+ 1. The main.py file includes a fix that disables Numba JIT compilation
94
+ 2. If issues persist, you can use the fallback.py version (currently active)
95
+ ```
96
+ # Update the app_file in README.md
97
+ app_file: fallback.py
98
+ ```
99
+
100
+ And update the Dockerfile:
101
+ ```
102
+ # Change the CMD line in Dockerfile
103
+ CMD ["uvicorn", "fallback:app", "--host", "0.0.0.0", "--port", "7860"]
104
+ ```
105
+
106
+ The fallback version doesn't actually remove backgrounds but provides a compatible API.