Stubbs0x commited on
Commit
7acd78f
·
verified ·
1 Parent(s): 40b3850

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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()