Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,7 @@ triposr_client = Client("stabilityai/TripoSR")
|
|
10 |
|
11 |
|
12 |
def run(image, model_name):
|
|
|
13 |
if model_name=='Shap-E':
|
14 |
result = shap_e_client.predict(
|
15 |
image, # filepath in 'Input image' Image component
|
@@ -38,7 +39,7 @@ def run(image, model_name):
|
|
38 |
|
39 |
with gr.Blocks() as demo:
|
40 |
with gr.Group():
|
41 |
-
image = gr.Image(label="Input image", show_label=False, type="
|
42 |
model_name = gr.Textbox(label="Model name", show_label=False)
|
43 |
run_button = gr.Button("Run")
|
44 |
result = gr.Model3D(label="Result", show_label=False)
|
|
|
10 |
|
11 |
|
12 |
def run(image, model_name):
|
13 |
+
print(image)
|
14 |
if model_name=='Shap-E':
|
15 |
result = shap_e_client.predict(
|
16 |
image, # filepath in 'Input image' Image component
|
|
|
39 |
|
40 |
with gr.Blocks() as demo:
|
41 |
with gr.Group():
|
42 |
+
image = gr.Image(label="Input image", show_label=False, type="str")
|
43 |
model_name = gr.Textbox(label="Model name", show_label=False)
|
44 |
run_button = gr.Button("Run")
|
45 |
result = gr.Model3D(label="Result", show_label=False)
|