Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def run(image, model_name):
|
|
| 26 |
elif model_name=='triposr':
|
| 27 |
|
| 28 |
process_result = triposr_client.predict(
|
| 29 |
-
|
| 30 |
True, # bool in 'Remove Background' Checkbox component
|
| 31 |
0.5, # float (numeric value between 0.5 and 1.0) in 'Foreground Ratio' Slider component
|
| 32 |
api_name="/preprocess")
|
|
|
|
| 26 |
elif model_name=='triposr':
|
| 27 |
|
| 28 |
process_result = triposr_client.predict(
|
| 29 |
+
file_path, # filepath in 'Input Image' Image component
|
| 30 |
True, # bool in 'Remove Background' Checkbox component
|
| 31 |
0.5, # float (numeric value between 0.5 and 1.0) in 'Foreground Ratio' Slider component
|
| 32 |
api_name="/preprocess")
|