Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def get_csv_file(docs):
|
|
32 |
|
33 |
def get_json_file(json_docs):
|
34 |
temp_dir = tempfile.TemporaryDirectory()
|
35 |
-
temp_filepath = os.path.join(temp_dir.name,
|
36 |
with open(temp_filepath, "wb") as f:
|
37 |
f.write(json_docs.getvalue())
|
38 |
|
|
|
32 |
|
33 |
def get_json_file(json_docs):
|
34 |
temp_dir = tempfile.TemporaryDirectory()
|
35 |
+
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
36 |
with open(temp_filepath, "wb") as f:
|
37 |
f.write(json_docs.getvalue())
|
38 |
|