Ashrafb commited on
Commit
cf9d58c
1 Parent(s): 0591fa0

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -27,7 +27,8 @@ async def upload_file(file: UploadFile = File(...), version: str = Form(...), sc
27
  temp_file_path = temp_file.name
28
 
29
  try:
30
- result = client.predict(temp_file_path, api_name="/predict")
 
31
 
32
  # Check if the result is valid
33
  if result and len(result) == 2:
 
27
  temp_file_path = temp_file.name
28
 
29
  try:
30
+ result = client.predict(temp_file_path, version, scale, api_name="/predict")
31
+
32
 
33
  # Check if the result is valid
34
  if result and len(result) == 2: