Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
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):
|