Ngaima Sandiman commited on
Commit
00e06fd
1 Parent(s): 332a6dc

Restricted image input to upload only.

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -26,7 +26,12 @@ def generate(image_path):
26
  imagecraft_app = gr.Interface(
27
  fn=generate,
28
  inputs=[
29
- gr.Image(type="filepath", label="Upload an image", value=default_image),
 
 
 
 
 
30
  ],
31
  outputs=[gr.Audio(label="Speech"), gr.Textbox(label="Text")],
32
  title="ImageCraft",
 
26
  imagecraft_app = gr.Interface(
27
  fn=generate,
28
  inputs=[
29
+ gr.Image(
30
+ type="filepath",
31
+ label="Upload an image",
32
+ sources=["upload"],
33
+ value=default_image,
34
+ ),
35
  ],
36
  outputs=[gr.Audio(label="Speech"), gr.Textbox(label="Text")],
37
  title="ImageCraft",