Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,8 +32,8 @@ dataICD10 = pd.read_csv(f'ICD10Diagnosis.csv')
|
|
32 |
|
33 |
dir_path = os.path.dirname(os.path.realpath(__file__))
|
34 |
EXAMPLES = {}
|
35 |
-
with open(dir_path + "\\" + "examples.json", "r") as f:
|
36 |
-
|
37 |
example_json = json.load(f)
|
38 |
EXAMPLES = {x["text"]: x["label"] for x in example_json}
|
39 |
|
|
|
32 |
|
33 |
dir_path = os.path.dirname(os.path.realpath(__file__))
|
34 |
EXAMPLES = {}
|
35 |
+
#with open(dir_path + "\\" + "examples.json", "r") as f:
|
36 |
+
with open(examples.json", "r") as f:
|
37 |
example_json = json.load(f)
|
38 |
EXAMPLES = {x["text"]: x["label"] for x in example_json}
|
39 |
|