Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,10 +24,10 @@ def query2(fetch_url):
|
|
24 |
|
25 |
response = requests.get(API_URL2)
|
26 |
dictionary=response.json()
|
27 |
-
json_object = json.dumps(dictionary, indent=4)
|
28 |
# Writing to sample.json
|
29 |
-
with open("sample.json", "
|
30 |
-
outfile.write(
|
31 |
return "sample.json"
|
32 |
|
33 |
def find_fn(inp,out_json):
|
|
|
24 |
|
25 |
response = requests.get(API_URL2)
|
26 |
dictionary=response.json()
|
27 |
+
#json_object = json.dumps(dictionary, indent=4)
|
28 |
# Writing to sample.json
|
29 |
+
with open("sample.json", "wb") as outfile:
|
30 |
+
outfile.write(dictionary)
|
31 |
return "sample.json"
|
32 |
|
33 |
def find_fn(inp,out_json):
|