Spaces:
Running
Running
AtsuMiyai
commited on
Commit
•
03f13cc
1
Parent(s):
8145d10
update app.py
Browse files
app.py
CHANGED
@@ -36,13 +36,12 @@ def upload_file(files):
|
|
36 |
|
37 |
|
38 |
def create_df(input_file):
|
39 |
-
|
40 |
-
json_string = bytes_data.decode('utf-8')
|
41 |
data = json.loads(json_string)
|
42 |
df = pd.DataFrame(data)
|
43 |
-
|
44 |
return df
|
45 |
|
|
|
46 |
# Accuracy Report
|
47 |
def report_acc(df, groupd='category', metric_type="dual"):
|
48 |
assert 'split' in df
|
|
|
36 |
|
37 |
|
38 |
def create_df(input_file):
|
39 |
+
json_string = input_file.decode('utf-8')
|
|
|
40 |
data = json.loads(json_string)
|
41 |
df = pd.DataFrame(data)
|
|
|
42 |
return df
|
43 |
|
44 |
+
|
45 |
# Accuracy Report
|
46 |
def report_acc(df, groupd='category', metric_type="dual"):
|
47 |
assert 'split' in df
|