katielink commited on
Commit
fd682f1
Β·
1 Parent(s): d2267e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -12,18 +12,17 @@ CITATION_BUTTON_TEXT = """@article{2022,
12
  author={Rostamzadeh, Negar and Mincu, Diana and Roy, Subhrajit and Smart, Andrew and Wilcox, Lauren and Pushkarna, Mahima and Schrouff, Jessica and Amironesei, Razvan and Moorosi, Nyalleng and Heller, Katherine},
13
  year={2022},
14
  month={Jun} }
15
- """
16
-
17
- healthsheet = ""
18
- for header in json_data:
19
- healthsheet.append(r"# {header}\n\n")
20
- for var_name, question in json_data[header]:
21
- healthsheet.append(r"## {question}\n\n")
22
 
23
  # Load the JSON data
24
  with open('healthsheet.json', 'r') as file:
25
  json_data = json.load(file)
26
 
 
 
 
 
 
27
 
28
  with gr.Blocks() as demo:
29
  gr.HTML("<h1><center>Healthsheet Creator! πŸͺ„πŸ“„βœ¨<h1><center>")
 
12
  author={Rostamzadeh, Negar and Mincu, Diana and Roy, Subhrajit and Smart, Andrew and Wilcox, Lauren and Pushkarna, Mahima and Schrouff, Jessica and Amironesei, Razvan and Moorosi, Nyalleng and Heller, Katherine},
13
  year={2022},
14
  month={Jun} }
15
+ """
 
 
 
 
 
 
16
 
17
  # Load the JSON data
18
  with open('healthsheet.json', 'r') as file:
19
  json_data = json.load(file)
20
 
21
+ healthsheet = ""
22
+ for header in json_data:
23
+ healthsheet.append(r"# {header}\n\n")
24
+ for var_name, question in json_data[header]:
25
+ healthsheet.append(r"## {question}\n\n")
26
 
27
  with gr.Blocks() as demo:
28
  gr.HTML("<h1><center>Healthsheet Creator! πŸͺ„πŸ“„βœ¨<h1><center>")