yoinked commited on
Commit
220e98c
β€’
1 Parent(s): 5cbff0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -179,8 +179,8 @@ with gr.Blocks(css=basecss, theme='NoCrypt/miku') as demo:
179
  prefix = gr.Textbox(label="prefix", lines=1, interactive=True)
180
  file_name = gr.Textbox(label="file name", lines=1, interactive=True)
181
  with gr.Row():
182
- file = gr.File(label="file", file_types=[".png", ".gif", ".webp", ".jpg", ".wav", ".mp3"])
183
- fileext = gr.Dropdown(label="filetype", ["png", "gif", "webp", "jpg", "wav", "mp3"])
184
  uploadbutton = gr.Button("upload")
185
  statii = gr.Textbox(label="status", interactive=False)
186
  uploadbutton.click(fn=upload, inputs=[prefix, file_name, fileext, file], outputs=statii)
 
179
  prefix = gr.Textbox(label="prefix", lines=1, interactive=True)
180
  file_name = gr.Textbox(label="file name", lines=1, interactive=True)
181
  with gr.Row():
182
+ file = gr.File(label="file", file_types=[".png", ".gif", ".webp", ".jpg", ".wav", ".mp3"], type="binary")
183
+ fileext = gr.Dropdown(label="filetype", choices=["png", "gif", "webp", "jpg", "wav", "mp3"])
184
  uploadbutton = gr.Button("upload")
185
  statii = gr.Textbox(label="status", interactive=False)
186
  uploadbutton.click(fn=upload, inputs=[prefix, file_name, fileext, file], outputs=statii)