Spaces:
Runtime error
Runtime error
Upload facility_predict.py
Browse files- facility_predict.py +2 -1
facility_predict.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import os
|
| 2 |
import random
|
|
|
|
| 3 |
import json
|
| 4 |
import numpy as np
|
| 5 |
import torch
|
|
@@ -104,7 +105,7 @@ class Facility_Model:
|
|
| 104 |
"""
|
| 105 |
output_dict = {}
|
| 106 |
# transform the relation table(between label and intent)
|
| 107 |
-
path_table = pd.read_csv('
|
| 108 |
|
| 109 |
label_intent_dict = path_table[["label", "corresponding_label"]].set_index("corresponding_label").to_dict()['label']
|
| 110 |
|
|
|
|
| 1 |
import os
|
| 2 |
import random
|
| 3 |
+
import gradio as gr
|
| 4 |
import json
|
| 5 |
import numpy as np
|
| 6 |
import torch
|
|
|
|
| 105 |
"""
|
| 106 |
output_dict = {}
|
| 107 |
# transform the relation table(between label and intent)
|
| 108 |
+
path_table = pd.read_csv('dhis_label_relation_14357.csv')
|
| 109 |
|
| 110 |
label_intent_dict = path_table[["label", "corresponding_label"]].set_index("corresponding_label").to_dict()['label']
|
| 111 |
|