kz-transformers commited on
Commit
266420a
·
verified ·
1 Parent(s): 01d59fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -158,7 +158,7 @@ def build_demo():
158
  # Use 'bytes' so we load file content in memory.
159
  file_output = gr.File(
160
  label="Drag and drop JSON file judgment here",
161
- type="bytes"
162
  )
163
 
164
  # We'll store the returned JSON object in uploaded_file (NOT the path).
 
158
  # Use 'bytes' so we load file content in memory.
159
  file_output = gr.File(
160
  label="Drag and drop JSON file judgment here",
161
+ type="binary"
162
  )
163
 
164
  # We'll store the returned JSON object in uploaded_file (NOT the path).