Spaces:
Sleeping
Sleeping
numpy version
Browse files- .gitignore +2 -1
- app.py +1 -2
- requirements.txt +1 -1
.gitignore
CHANGED
|
@@ -1,2 +1,3 @@
|
|
| 1 |
# Virtual environments
|
| 2 |
-
venv
|
|
|
|
|
|
| 1 |
# Virtual environments
|
| 2 |
+
venv
|
| 3 |
+
app_orig.py
|
app.py
CHANGED
|
@@ -15,6 +15,7 @@ import os
|
|
| 15 |
# Define variables
|
| 16 |
path = os.getcwd()
|
| 17 |
font_path = r'{}/arial.ttf'.format(path)
|
|
|
|
| 18 |
|
| 19 |
# Load the pre-trained model - FastSAM
|
| 20 |
# fastsam_model = FastSAM('./FastSAM-s.pt')
|
|
@@ -40,8 +41,6 @@ instruction = """ # Instruction
|
|
| 40 |
"""
|
| 41 |
css = "h1 { text-align: center } .about { text-align: justify; padding-left: 10%; padding-right: 10%; }"
|
| 42 |
|
| 43 |
-
# Others
|
| 44 |
-
font_path = '/Users/zhe.mai/Documents/segmentation_apps/segtesting/arial.ttf'
|
| 45 |
|
| 46 |
def read_image(url):
|
| 47 |
response = requests.get(url)
|
|
|
|
| 15 |
# Define variables
|
| 16 |
path = os.getcwd()
|
| 17 |
font_path = r'{}/arial.ttf'.format(path)
|
| 18 |
+
print(font_path)
|
| 19 |
|
| 20 |
# Load the pre-trained model - FastSAM
|
| 21 |
# fastsam_model = FastSAM('./FastSAM-s.pt')
|
|
|
|
| 41 |
"""
|
| 42 |
css = "h1 { text-align: center } .about { text-align: justify; padding-left: 10%; padding-right: 10%; }"
|
| 43 |
|
|
|
|
|
|
|
| 44 |
|
| 45 |
def read_image(url):
|
| 46 |
response = requests.get(url)
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
matplotlib==3.2.2
|
| 2 |
-
numpy
|
| 3 |
torch==2.2.2
|
| 4 |
opencv-python
|
| 5 |
transformers==4.49.0
|
|
|
|
| 1 |
matplotlib==3.2.2
|
| 2 |
+
numpy==1.26.4
|
| 3 |
torch==2.2.2
|
| 4 |
opencv-python
|
| 5 |
transformers==4.49.0
|