Roland Ding commited on
Commit
ca2e8a8
·
1 Parent(s): 1f8db9c

5.4.15.43 minor update of report section title style and clean away unused variables in application.py

Browse files
Files changed (2) hide show
  1. application.py +0 -20
  2. features.py +3 -3
application.py CHANGED
@@ -9,11 +9,6 @@ aws_access_key_id = os.environ.get('AMRA_AWS_ACCESS_KEY_ID')
9
  aws_secret_access_key = os.environ.get('AMRA_AWS_SECRET_ACCESS_KEY')
10
  openai_api_key = os.environ.get('AMRA_OPENAI_API_KEY')
11
 
12
- '''
13
- ui device environment variables
14
- '''
15
- eu_device_classification = ["phone", "laptop", "tablet", "desktop"]
16
-
17
  device_options={
18
  "secondary extraction":False,
19
  "secondary extraction count":0
@@ -28,21 +23,6 @@ ec_options={
28
  "Equivalent Comparator count":0
29
  }
30
 
31
- assessments=[
32
- "overview",
33
- "clinical",
34
- "radiographic",
35
- "fusion assessment",
36
- "other",
37
- "safety"
38
- ]
39
-
40
- logic_keywords = {
41
- "groups":["group"],
42
- "levels":["level","segment"],
43
- "preoperatives":["pre-op","preoperative"],
44
- }
45
-
46
  '''
47
  dynamodb tables structure
48
  '''
 
9
  aws_secret_access_key = os.environ.get('AMRA_AWS_SECRET_ACCESS_KEY')
10
  openai_api_key = os.environ.get('AMRA_OPENAI_API_KEY')
11
 
 
 
 
 
 
12
  device_options={
13
  "secondary extraction":False,
14
  "secondary extraction count":0
 
23
  "Equivalent Comparator count":0
24
  }
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  '''
27
  dynamodb tables structure
28
  '''
features.py CHANGED
@@ -84,11 +84,11 @@ def create_views(output):
84
  overview = [v for _,v in output.items() if v["assessment"] == "overview"][0]
85
  safety = [v for _,v in output.items() if v["assessment"] == "safety"][0]
86
  # add overview
87
- md_text += f"<details>\n<summary>Overivew</summary>\n\n"
88
  md_text += overview["content"] + "\n</details>\n\n"
89
 
90
  # add performance
91
- md_text += f"<details>\n<summary>Performance</summary>\n\n"
92
  for title,content in output.items():
93
  if content["assessment"] not in ["overview","safety"]:
94
  md_text += f"#### {content['assessment']} - {title}\n\n"
@@ -96,7 +96,7 @@ def create_views(output):
96
  md_text += "</details>\n\n"
97
 
98
  # add safety
99
- md_text += f"<details>\n<summary>Safety</summary>\n\n"
100
  md_text += safety["content"] + "\n\n" + "</details>\n\n"
101
 
102
  return gr.update(value=md_text)
 
84
  overview = [v for _,v in output.items() if v["assessment"] == "overview"][0]
85
  safety = [v for _,v in output.items() if v["assessment"] == "safety"][0]
86
  # add overview
87
+ md_text += f"<details>\n<summary><h2>Overivew</h2></summary>\n\n"
88
  md_text += overview["content"] + "\n</details>\n\n"
89
 
90
  # add performance
91
+ md_text += f"<details>\n<summary><h2>Performance</h2></summary>\n\n"
92
  for title,content in output.items():
93
  if content["assessment"] not in ["overview","safety"]:
94
  md_text += f"#### {content['assessment']} - {title}\n\n"
 
96
  md_text += "</details>\n\n"
97
 
98
  # add safety
99
+ md_text += f"<details>\n<summary><h2>Safety</h2></summary>\n\n"
100
  md_text += safety["content"] + "\n\n" + "</details>\n\n"
101
 
102
  return gr.update(value=md_text)