Spaces:
Runtime error
Runtime error
RamAnanth1
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -10,10 +10,12 @@ triposr_client = Client("stabilityai/TripoSR")
|
|
10 |
|
11 |
|
12 |
def run(image, model_name):
|
13 |
-
|
|
|
|
|
14 |
if model_name=='Shap-E':
|
15 |
result = shap_e_client.predict(
|
16 |
-
|
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
|