Spaces:
Running
Running
Commit ·
3982ff9
1
Parent(s): 5a6f4c9
automated backend deploy test
Browse files- .dockerignore +1 -0
- main.py +1 -1
.dockerignore
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
models/
|
| 2 |
fonts/
|
| 3 |
.venv/
|
|
|
|
| 4 |
__pycache__/
|
| 5 |
|
| 6 |
backend/models/
|
|
|
|
| 1 |
models/
|
| 2 |
fonts/
|
| 3 |
.venv/
|
| 4 |
+
.venv_backend/
|
| 5 |
__pycache__/
|
| 6 |
|
| 7 |
backend/models/
|
main.py
CHANGED
|
@@ -124,7 +124,7 @@ def test(img_path: Optional[str] = None):
|
|
| 124 |
return {"result": bubble_data}
|
| 125 |
else:
|
| 126 |
print(f"{img_path} does not exist")
|
| 127 |
-
|
| 128 |
if __name__ == "__main__":
|
| 129 |
port = int(os.environ.get("PORT", 8000))
|
| 130 |
print(f"--- Starting Production Server on Port {port} ---")
|
|
|
|
| 124 |
return {"result": bubble_data}
|
| 125 |
else:
|
| 126 |
print(f"{img_path} does not exist")
|
| 127 |
+
#
|
| 128 |
if __name__ == "__main__":
|
| 129 |
port = int(os.environ.get("PORT", 8000))
|
| 130 |
print(f"--- Starting Production Server on Port {port} ---")
|