Spaces:
Running
Running
The-Best-Codes
commited on
Commit
·
899ac64
1
Parent(s):
ec8835a
Fix input in gradio
Browse files
app.py
CHANGED
|
@@ -20,14 +20,14 @@ def generate_shap_e_gif(prompt):
|
|
| 20 |
return gif_path
|
| 21 |
|
| 22 |
# Create the Gradio interface
|
| 23 |
-
|
| 24 |
fn=generate_shap_e_gif,
|
| 25 |
-
inputs=gr.
|
| 26 |
-
outputs=
|
| 27 |
title="ShapE 3D GIF Generator",
|
| 28 |
description="Enter a prompt to generate a 3D GIF using the ShapE model."
|
| 29 |
)
|
| 30 |
|
| 31 |
# Run the app
|
| 32 |
if __name__ == "__main__":
|
| 33 |
-
|
|
|
|
| 20 |
return gif_path
|
| 21 |
|
| 22 |
# Create the Gradio interface
|
| 23 |
+
demo = gr.Interface(
|
| 24 |
fn=generate_shap_e_gif,
|
| 25 |
+
inputs=gr.Textbox(lines=2, placeholder="Enter a prompt"),
|
| 26 |
+
outputs=gr.File(),
|
| 27 |
title="ShapE 3D GIF Generator",
|
| 28 |
description="Enter a prompt to generate a 3D GIF using the ShapE model."
|
| 29 |
)
|
| 30 |
|
| 31 |
# Run the app
|
| 32 |
if __name__ == "__main__":
|
| 33 |
+
demo.launch()
|