Ngaima Sandiman commited on
Commit
57a94b9
·
1 Parent(s): b3575e0

Added main method.

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -24,13 +24,13 @@ gradio_interface = gr.Interface(
24
  fn=imagecraft_interface,
25
  inputs=[
26
  gr.Image(type="filepath", label="Upload an image"),
27
- gr.Textbox(label="Reference Text (for evaluation)"),
28
  ],
29
  outputs=[gr.Audio(label="Speech"), gr.Textbox(label="Transcript")],
30
  title="ImageCraft",
31
  description="Upload an image and get the speech responses.",
32
- allow_flagging="never",
33
  )
34
 
35
- # Launch the Gradio app
36
- gradio_interface.launch(share=True)
 
 
24
  fn=imagecraft_interface,
25
  inputs=[
26
  gr.Image(type="filepath", label="Upload an image"),
 
27
  ],
28
  outputs=[gr.Audio(label="Speech"), gr.Textbox(label="Transcript")],
29
  title="ImageCraft",
30
  description="Upload an image and get the speech responses.",
31
+ flagging_mode="never",
32
  )
33
 
34
+ if __name__ == "__main__":
35
+ # Launch the Gradio app
36
+ gradio_interface.launch()