Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ import tts
|
|
25 |
############# this part is for 3D generate #############
|
26 |
###############################################################################
|
27 |
|
28 |
-
|
29 |
|
30 |
#import spaces
|
31 |
|
@@ -273,7 +273,7 @@ def make3d(images):
|
|
273 |
print(f"Mesh saved to {mesh_fpath}")
|
274 |
|
275 |
return mesh_fpath, mesh_glb_fpath
|
276 |
-
|
277 |
|
278 |
###############################################################################
|
279 |
############# above part is for 3D generate #############
|
@@ -993,10 +993,11 @@ def create_ui():
|
|
993 |
submit_tts = gr.Button(value="Submit", interactive=True)
|
994 |
clear_tts = gr.Button(value="Clear", interactive=True)
|
995 |
|
|
|
996 |
###############################################################################
|
997 |
# this part is for 3d generate.
|
998 |
###############################################################################
|
999 |
-
|
1000 |
with gr.Row(variant="panel"):
|
1001 |
with gr.Column():
|
1002 |
with gr.Row():
|
@@ -1082,7 +1083,8 @@ def create_ui():
|
|
1082 |
|
1083 |
with gr.Row():
|
1084 |
gr.Markdown('''Try a different <b>seed value</b> if the result is unsatisfying (Default: 42).''')
|
1085 |
-
|
|
|
1086 |
mv_images = gr.State()
|
1087 |
|
1088 |
submit.click(fn=check_input_image, inputs=[new_crop_save_path], outputs=[process_images]).success(
|
@@ -1095,10 +1097,11 @@ def create_ui():
|
|
1095 |
inputs=[mv_images],
|
1096 |
outputs=[output_model_obj, output_model_glb]
|
1097 |
)
|
|
|
1098 |
###############################################################################
|
1099 |
# above part is for 3d generate.
|
1100 |
###############################################################################
|
1101 |
-
|
1102 |
|
1103 |
def clear_tts_fields():
|
1104 |
return [gr.update(value=""), gr.update(value=""), None, None, gr.update(value=False), gr.update(value=True), None, None]
|
|
|
25 |
############# this part is for 3D generate #############
|
26 |
###############################################################################
|
27 |
|
28 |
+
'''
|
29 |
|
30 |
#import spaces
|
31 |
|
|
|
273 |
print(f"Mesh saved to {mesh_fpath}")
|
274 |
|
275 |
return mesh_fpath, mesh_glb_fpath
|
276 |
+
'''
|
277 |
|
278 |
###############################################################################
|
279 |
############# above part is for 3D generate #############
|
|
|
993 |
submit_tts = gr.Button(value="Submit", interactive=True)
|
994 |
clear_tts = gr.Button(value="Clear", interactive=True)
|
995 |
|
996 |
+
|
997 |
###############################################################################
|
998 |
# this part is for 3d generate.
|
999 |
###############################################################################
|
1000 |
+
'''
|
1001 |
with gr.Row(variant="panel"):
|
1002 |
with gr.Column():
|
1003 |
with gr.Row():
|
|
|
1083 |
|
1084 |
with gr.Row():
|
1085 |
gr.Markdown('''Try a different <b>seed value</b> if the result is unsatisfying (Default: 42).''')
|
1086 |
+
|
1087 |
+
'''
|
1088 |
mv_images = gr.State()
|
1089 |
|
1090 |
submit.click(fn=check_input_image, inputs=[new_crop_save_path], outputs=[process_images]).success(
|
|
|
1097 |
inputs=[mv_images],
|
1098 |
outputs=[output_model_obj, output_model_glb]
|
1099 |
)
|
1100 |
+
'''
|
1101 |
###############################################################################
|
1102 |
# above part is for 3d generate.
|
1103 |
###############################################################################
|
1104 |
+
|
1105 |
|
1106 |
def clear_tts_fields():
|
1107 |
return [gr.update(value=""), gr.update(value=""), None, None, gr.update(value=False), gr.update(value=True), None, None]
|