'1'
Browse files
app.py
CHANGED
@@ -5,20 +5,20 @@ from gradio_client import Client, file
|
|
5 |
# return "Hello, " + name + "!" * int(intensity)
|
6 |
|
7 |
def test(text):
|
8 |
-
|
9 |
-
# result = client.predict(
|
10 |
-
# image=file('https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png'),
|
11 |
-
# fr=0.85,
|
12 |
-
# api_name="/requires_bg_remove"
|
13 |
-
# )
|
14 |
-
client = Client("stabilityai/TripoSR")
|
15 |
result = client.predict(
|
16 |
-
|
17 |
-
|
18 |
-
api_name="/
|
19 |
)
|
20 |
-
|
21 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
return result
|
23 |
|
24 |
|
|
|
5 |
# return "Hello, " + name + "!" * int(intensity)
|
6 |
|
7 |
def test(text):
|
8 |
+
client = Client("stabilityai/stable-fast-3d")
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
result = client.predict(
|
10 |
+
image=file('https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png'),
|
11 |
+
fr=0.85,
|
12 |
+
api_name="/requires_bg_remove"
|
13 |
)
|
14 |
+
|
15 |
+
# client = Client("stabilityai/TripoSR")
|
16 |
+
# result = client.predict(
|
17 |
+
# "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png", # filepath in 'Processed Image' Image component
|
18 |
+
# 32, # float (numeric value between 32 and 320) in 'Marching Cubes Resolution' Slider component
|
19 |
+
# api_name="/generate"
|
20 |
+
# )
|
21 |
+
|
22 |
return result
|
23 |
|
24 |
|