Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def image_to_3d(image_path:str)-> dict: #it's import to specify the return type
|
|
| 20 |
|
| 21 |
client = Client("frogleo/Image-to-3D")
|
| 22 |
result = client.predict(
|
| 23 |
-
image=image_path,
|
| 24 |
steps=5,
|
| 25 |
guidance_scale=5.5,
|
| 26 |
seed=1234,
|
|
@@ -89,4 +89,4 @@ agent = CodeAgent(
|
|
| 89 |
)
|
| 90 |
|
| 91 |
|
| 92 |
-
GradioUI(agent).launch()
|
|
|
|
| 20 |
|
| 21 |
client = Client("frogleo/Image-to-3D")
|
| 22 |
result = client.predict(
|
| 23 |
+
image=handle_file(image_path),
|
| 24 |
steps=5,
|
| 25 |
guidance_scale=5.5,
|
| 26 |
seed=1234,
|
|
|
|
| 89 |
)
|
| 90 |
|
| 91 |
|
| 92 |
+
GradioUI(agent, file_upload_folder="uploads").launch()
|