RamAnanth1 commited on
Commit
d6394b6
·
verified ·
1 Parent(s): a533d10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -10,10 +10,12 @@ triposr_client = Client("stabilityai/TripoSR")
10
 
11
 
12
  def run(image, model_name):
13
- print(image)
 
 
14
  if model_name=='Shap-E':
15
  result = shap_e_client.predict(
16
- image, # filepath in 'Input image' Image component
17
  0, # float (numeric value between 0 and 2147483647) in 'Seed' Slider component
18
  1, # float (numeric value between 1 and 20) in 'Guidance scale' Slider component
19
  2, # float (numeric value between 2 and 100) in 'Number of inference steps' Slider component
 
10
 
11
 
12
  def run(image, model_name):
13
+ file_path = "temp.png"
14
+ image.save(file_path)
15
+ print(file_path)
16
  if model_name=='Shap-E':
17
  result = shap_e_client.predict(
18
+ file_path, # filepath in 'Input image' Image component
19
  0, # float (numeric value between 0 and 2147483647) in 'Seed' Slider component
20
  1, # float (numeric value between 1 and 20) in 'Guidance scale' Slider component
21
  2, # float (numeric value between 2 and 100) in 'Number of inference steps' Slider component