m3g4p0p commited on
Commit
2dcd784
·
1 Parent(s): 9ccca9f

add file types

Browse files
Files changed (1) hide show
  1. myapp/app.py +3 -1
myapp/app.py CHANGED
@@ -44,7 +44,9 @@ with gr.Blocks() as demo:
44
  prompt = gr.TextArea("A psychedelic vulture", label="Prompt")
45
  model = gr.Radio(MODELS, value=MODELS[0], label="Model")
46
  generate_button = gr.Button("Generate")
47
- upload_button = gr.UploadButton("Upload")
 
 
48
 
49
  with gr.Column():
50
  output = gr.Image()
 
44
  prompt = gr.TextArea("A psychedelic vulture", label="Prompt")
45
  model = gr.Radio(MODELS, value=MODELS[0], label="Model")
46
  generate_button = gr.Button("Generate")
47
+ upload_button = gr.UploadButton(
48
+ "Upload", file_types=["image"], type="filepath"
49
+ )
50
 
51
  with gr.Column():
52
  output = gr.Image()