Spaces:
Sleeping
Sleeping
Neurolingua
commited on
Commit
•
77e49e3
1
Parent(s):
6263425
Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,10 @@ import io
|
|
8 |
import uuid
|
9 |
import shutil
|
10 |
app = Flask(__name__)
|
11 |
-
UPLOAD_FOLDER = 'uploads'
|
12 |
if not os.path.exists(UPLOAD_FOLDER):
|
13 |
os.makedirs(UPLOAD_FOLDER)
|
|
|
14 |
from inference_sdk import InferenceHTTPClient
|
15 |
def predict_disease(filepath):
|
16 |
CLIENT = InferenceHTTPClient(
|
|
|
8 |
import uuid
|
9 |
import shutil
|
10 |
app = Flask(__name__)
|
11 |
+
UPLOAD_FOLDER = '/code/uploads'
|
12 |
if not os.path.exists(UPLOAD_FOLDER):
|
13 |
os.makedirs(UPLOAD_FOLDER)
|
14 |
+
|
15 |
from inference_sdk import InferenceHTTPClient
|
16 |
def predict_disease(filepath):
|
17 |
CLIENT = InferenceHTTPClient(
|