RamAnanth1 commited on
Commit
5bf4118
1 Parent(s): 7a60f8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,13 +26,13 @@ def run(image, model_name):
26
  process_result = triposr_client.predict(
27
  file_path, # filepath in 'Input Image' Image component
28
  True, # bool in 'Remove Background' Checkbox component
29
- 0.5, # float (numeric value between 0.5 and 1.0) in 'Foreground Ratio' Slider component
30
  api_name="/preprocess")
31
  print(type(process_result))
32
 
33
  result = triposr_client.predict(
34
  process_result, # filepath in 'Processed Image' Image component
35
- 32, # float (numeric value between 32 and 320) in 'Marching Cubes Resolution' Slider component
36
  api_name="/generate")
37
 
38
  output = result[0]
 
26
  process_result = triposr_client.predict(
27
  file_path, # filepath in 'Input Image' Image component
28
  True, # bool in 'Remove Background' Checkbox component
29
+ 0.85, # float (numeric value between 0.5 and 1.0) in 'Foreground Ratio' Slider component
30
  api_name="/preprocess")
31
  print(type(process_result))
32
 
33
  result = triposr_client.predict(
34
  process_result, # filepath in 'Processed Image' Image component
35
+ 256, # float (numeric value between 32 and 320) in 'Marching Cubes Resolution' Slider component
36
  api_name="/generate")
37
 
38
  output = result[0]