The-Best-Codes commited on
Commit
899ac64
·
1 Parent(s): ec8835a

Fix input in gradio

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -20,14 +20,14 @@ def generate_shap_e_gif(prompt):
20
  return gif_path
21
 
22
  # Create the Gradio interface
23
- iface = gr.Interface(
24
  fn=generate_shap_e_gif,
25
- inputs=gr.inputs.Textbox(lines=2, placeholder="Enter a prompt"),
26
- outputs="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
- iface.launch()
 
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()