Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ dataICD10 = pd.read_csv(f'ICD10Diagnosis.csv')
|
|
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 |
|
|
|
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 |
|