Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,16 +24,7 @@ def query2(fetch_url):
|
|
24 |
|
25 |
response = requests.get(API_URL2)
|
26 |
dictionary=response.json()
|
27 |
-
|
28 |
-
# Writing to sample.json
|
29 |
-
#json_object=json.load(dictionary)
|
30 |
-
with open("sample.json", "w", encoding="utf-8") as outfile:
|
31 |
-
#json.dumps(response_dict, indent=4, sort_keys=True)
|
32 |
-
|
33 |
-
json.dump(dictionary, outfile, ensure_ascii=False)
|
34 |
-
|
35 |
-
#outfile.write(dictionary)
|
36 |
-
return "sample.json"
|
37 |
|
38 |
def find_fn(inp,out_json):
|
39 |
print(out_json[1])
|
|
|
24 |
|
25 |
response = requests.get(API_URL2)
|
26 |
dictionary=response.json()
|
27 |
+
return dictionary
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
def find_fn(inp,out_json):
|
30 |
print(out_json[1])
|