Omnibus commited on
Commit
7894445
·
1 Parent(s): 60ed47f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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", "w") as outfile:
30
- outfile.write(json_object)
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):