John Graham Reynolds
commited on
Commit
•
40a8b4b
1
Parent(s):
23e9f70
remove comments
Browse files
app.py
CHANGED
@@ -48,28 +48,6 @@ def evaluation(predictions, metrics) -> str:
|
|
48 |
|
49 |
return f"Your metrics are as follows: \n {outputs}"
|
50 |
|
51 |
-
|
52 |
-
# gr.Interface(
|
53 |
-
# fn=show_off,
|
54 |
-
# inputs=gr.Dataframe(type="array", datatype="number", row_count=5, col_count=1),
|
55 |
-
# outputs="text",
|
56 |
-
# title=title,
|
57 |
-
# description=description,
|
58 |
-
# article=article,
|
59 |
-
# examples=[pd.DataFrame([1, 0, 2, 0, 1])],
|
60 |
-
# cache_examples=False
|
61 |
-
# ).launch()
|
62 |
-
|
63 |
-
# use this to create examples
|
64 |
-
|
65 |
-
# data = {'Name':['Tony', 'Steve', 'Bruce', 'Peter' ],
|
66 |
-
# 'Age': [35, 70, 45, 20] }
|
67 |
-
|
68 |
-
# # Creating DataFrame
|
69 |
-
# df = pd.DataFrame(data)
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
def filter_records(records, gender):
|
74 |
return records[records["gender"] == gender]
|
75 |
|
|
|
48 |
|
49 |
return f"Your metrics are as follows: \n {outputs}"
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
def filter_records(records, gender):
|
52 |
return records[records["gender"] == gender]
|
53 |
|