twinkle-toes commited on
Commit
74e9b32
·
verified ·
1 Parent(s): e02a476

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -156,7 +156,7 @@ with gr.Blocks() as demo:
156
  with gr.Tabs() as tabs:
157
  with gr.TabItem("Upload", id=0):
158
  file = gr.File(label="Upload a preset (.json)", file_types=[".json"])
159
- file.input(fn=load_from_file, inputs=[file], outputs=[preset, preset_error])
160
  url_input = gr.Textbox(label="Enter a URL to a preset (.json) - press Enter to submit")
161
  url_input.submit(fn=load_from_url, inputs=[url_input], outputs=[preset, preset_error])
162
  with gr.TabItem("Viewer", id=1):
 
156
  with gr.Tabs() as tabs:
157
  with gr.TabItem("Upload", id=0):
158
  file = gr.File(label="Upload a preset (.json)", file_types=[".json"])
159
+ file.upload(fn=load_from_file, inputs=[file], outputs=[preset, preset_error])
160
  url_input = gr.Textbox(label="Enter a URL to a preset (.json) - press Enter to submit")
161
  url_input.submit(fn=load_from_url, inputs=[url_input], outputs=[preset, preset_error])
162
  with gr.TabItem("Viewer", id=1):