Roland Ding commited on
Commit
ce1b1cd
·
1 Parent(s): 0f376ee

quick fix for a line of unused code giving error.

Browse files
Files changed (1) hide show
  1. application.py +12 -12
application.py CHANGED
@@ -65,18 +65,18 @@ article_prompts = {
65
  '''
66
  }
67
 
68
- overview_prompts = clinical_prompts = radiological_prompts = other_prompts = {}
69
-
70
- # populate the prompts from .prompt/overview/ folder
71
- def update_prompts_from_dir(prompts,path):
72
- for file in os.listdir(path):
73
- with open(f"{path}/{file}","r") as f:
74
- prompts[file.split(".")[0]] = f.read()
75
-
76
- update_prompts_from_dir(overview_prompts,".prompts/overview")
77
- update_prompts_from_dir(clinical_prompts,".prompts/clinical")
78
- update_prompts_from_dir(radiological_prompts,".prompts/radiologic")
79
- update_prompts_from_dir(other_prompts,".prompts/other")
80
 
81
 
82
  '''
 
65
  '''
66
  }
67
 
68
+ # overview_prompts = clinical_prompts = radiological_prompts = other_prompts = {}
69
+
70
+ # # populate the prompts from .prompt/overview/ folder
71
+ # def update_prompts_from_dir(prompts,path):
72
+ # for file in os.listdir(path):
73
+ # with open(f"{path}/{file}","r") as f:
74
+ # prompts[file.split(".")[0]] = f.read()
75
+
76
+ # update_prompts_from_dir(overview_prompts,".prompts/overview")
77
+ # update_prompts_from_dir(clinical_prompts,".prompts/clinical")
78
+ # update_prompts_from_dir(radiological_prompts,".prompts/radiologic")
79
+ # update_prompts_from_dir(other_prompts,".prompts/other")
80
 
81
 
82
  '''