'1'
Browse files
app.py
CHANGED
@@ -5,13 +5,20 @@ from gradio_client import Client, file
|
|
5 |
# return "Hello, " + name + "!" * int(intensity)
|
6 |
|
7 |
def test(text):
|
8 |
-
client = Client("stabilityai/stable-fast-3d")
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
result = client.predict(
|
10 |
-
|
11 |
-
|
12 |
-
api_name="/
|
13 |
)
|
14 |
# print(result)
|
|
|
15 |
return result
|
16 |
|
17 |
|
@@ -23,7 +30,7 @@ def test(text):
|
|
23 |
demo = gr.Interface(
|
24 |
fn=test,
|
25 |
inputs=["text"],
|
26 |
-
outputs=["
|
27 |
)
|
28 |
|
29 |
demo.launch(share=True)
|
|
|
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 |
+
client = Client("stabilityai/TripoSR")
|
15 |
result = client.predict(
|
16 |
+
"https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png", # filepath in 'Processed Image' Image component
|
17 |
+
32, # float (numeric value between 32 and 320) in 'Marching Cubes Resolution' Slider component
|
18 |
+
api_name="/generate"
|
19 |
)
|
20 |
# print(result)
|
21 |
+
# print(result)
|
22 |
return result
|
23 |
|
24 |
|
|
|
30 |
demo = gr.Interface(
|
31 |
fn=test,
|
32 |
inputs=["text"],
|
33 |
+
outputs=["text"],
|
34 |
)
|
35 |
|
36 |
demo.launch(share=True)
|