fengfeng2 commited on
Commit
c2142df
·
1 Parent(s): 3ef799b
Files changed (1) hide show
  1. app.py +8 -10
app.py CHANGED
@@ -8,19 +8,17 @@ def test(text):
8
 
9
  client = Client("stabilityai/stable-fast-3d")
10
 
11
- result = client.predict(
12
- input_image=file('https://stabilityai-stable-fast-3d.hf.space/file=/tmp/gradio/cedf71215ac1d8f6d44cd9cc94a65c5c2b5b76b0/banana.jpg'),
13
- foreground_ratio=0.85,
14
- api_name="/run_button"
15
- )
16
-
17
- # client = Client("stabilityai/TripoSR")
18
  # result = client.predict(
19
- # "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png", # filepath in 'Processed Image' Image component
20
- # 32, # float (numeric value between 32 and 320) in 'Marching Cubes Resolution' Slider component
21
- # api_name="/generate"
22
  # )
23
 
 
 
 
 
 
24
  return result
25
 
26
 
 
8
 
9
  client = Client("stabilityai/stable-fast-3d")
10
 
 
 
 
 
 
 
 
11
  # result = client.predict(
12
+ # input_image=file('https://stabilityai-stable-fast-3d.hf.space/file=/tmp/gradio/cedf71215ac1d8f6d44cd9cc94a65c5c2b5b76b0/banana.jpg'),
13
+ # foreground_ratio=0.85,
14
+ # api_name="/run_button"
15
  # )
16
 
17
+ result = client.predict(
18
+ image=file('https://stabilityai-stable-fast-3d.hf.space/file=/tmp/gradio/cedf71215ac1d8f6d44cd9cc94a65c5c2b5b76b0/banana.jpg'),
19
+ fr=0.85,
20
+ api_name="/requires_bg_remove"
21
+ )
22
  return result
23
 
24