Show the description of the inference methods
Browse files
app.py
CHANGED
|
@@ -128,6 +128,27 @@ with tab1:
|
|
| 128 |
st.write("Note: The metrics are macro-averaged across all dialects.")
|
| 129 |
|
| 130 |
with st.expander("Click for more information."):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
with open("leaderboard_info.md", "r") as f:
|
| 132 |
MARKDOWN_TEXT = f.read()
|
| 133 |
st.markdown(MARKDOWN_TEXT)
|
|
|
|
| 128 |
st.write("Note: The metrics are macro-averaged across all dialects.")
|
| 129 |
|
| 130 |
with st.expander("Click for more information."):
|
| 131 |
+
inference_functions_names = [
|
| 132 |
+
func_name for func_name, _ in getmembers(eval_utils, isfunction)
|
| 133 |
+
]
|
| 134 |
+
# Show the docstring of the inference functions
|
| 135 |
+
inference_functions_docstring = [
|
| 136 |
+
getattr(eval_utils, func).__doc__ for func in inference_functions_names
|
| 137 |
+
]
|
| 138 |
+
|
| 139 |
+
inference_functions_df = pd.DataFrame(
|
| 140 |
+
{
|
| 141 |
+
"Method": inference_functions_names,
|
| 142 |
+
"Description": inference_functions_docstring,
|
| 143 |
+
}
|
| 144 |
+
)
|
| 145 |
+
st.markdown(
|
| 146 |
+
"## Inference Methods' Descriptions", unsafe_allow_html=True
|
| 147 |
+
)
|
| 148 |
+
st.markdown(
|
| 149 |
+
inference_functions_df.to_markdown(index=False), unsafe_allow_html=True
|
| 150 |
+
)
|
| 151 |
+
|
| 152 |
with open("leaderboard_info.md", "r") as f:
|
| 153 |
MARKDOWN_TEXT = f.read()
|
| 154 |
st.markdown(MARKDOWN_TEXT)
|