Spaces:
Runtime error
Runtime error
niansong1996
commited on
Commit
•
b60746d
1
Parent(s):
900ec53
add more details
Browse files- app.py +37 -5
- images/l2ceval-logo.png +2 -2
app.py
CHANGED
@@ -6,6 +6,8 @@ import streamlit as st
|
|
6 |
import pandas as pd
|
7 |
import time
|
8 |
|
|
|
|
|
9 |
# define some constants
|
10 |
CODE_LLM = "Codex"
|
11 |
DEFAULT_FIRST_EXAMPLE_IDX = 47
|
@@ -19,8 +21,8 @@ RESULT_FILES_DICTS = {
|
|
19 |
"MBPP": "demo-mbpp-codex-results.jsonl"
|
20 |
}
|
21 |
|
22 |
-
N_MODELS =
|
23 |
-
N_ORGS =
|
24 |
|
25 |
#################### Setups must go first ####################
|
26 |
st.set_page_config(layout="wide")
|
@@ -40,9 +42,7 @@ with st.sidebar:
|
|
40 |
#################### START OF DEMO ####################
|
41 |
|
42 |
# some basic intro
|
43 |
-
|
44 |
-
st.markdown("![Sample Image](./images/l2ceval-logo.png)")
|
45 |
-
|
46 |
st.markdown("### L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Models")
|
47 |
st.markdown("**Ansong Ni$^†$, Pengcheng Yin$^♣$, Yilun Zhao$^†$, Martin Riddell$^†$, Troy Feng$^†$, Rui Shen$^†$, Stephen Yin$^†$**")
|
48 |
st.markdown("**Ye Liu$^♢$, Semih Yavuz$^♢$, " \
|
@@ -144,3 +144,35 @@ st.markdown("""
|
|
144 |
- OpenAI code-davinci-002
|
145 |
- OpenAI code-cushman-001
|
146 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
import pandas as pd
|
7 |
import time
|
8 |
|
9 |
+
import numpy as np
|
10 |
+
|
11 |
# define some constants
|
12 |
CODE_LLM = "Codex"
|
13 |
DEFAULT_FIRST_EXAMPLE_IDX = 47
|
|
|
21 |
"MBPP": "demo-mbpp-codex-results.jsonl"
|
22 |
}
|
23 |
|
24 |
+
N_MODELS = 54
|
25 |
+
N_ORGS = 13
|
26 |
|
27 |
#################### Setups must go first ####################
|
28 |
st.set_page_config(layout="wide")
|
|
|
42 |
#################### START OF DEMO ####################
|
43 |
|
44 |
# some basic intro
|
45 |
+
st.image("images/l2ceval-logo.png", use_column_width="auto")
|
|
|
|
|
46 |
st.markdown("### L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Models")
|
47 |
st.markdown("**Ansong Ni$^†$, Pengcheng Yin$^♣$, Yilun Zhao$^†$, Martin Riddell$^†$, Troy Feng$^†$, Rui Shen$^†$, Stephen Yin$^†$**")
|
48 |
st.markdown("**Ye Liu$^♢$, Semih Yavuz$^♢$, " \
|
|
|
144 |
- OpenAI code-davinci-002
|
145 |
- OpenAI code-cushman-001
|
146 |
""")
|
147 |
+
|
148 |
+
st.divider()
|
149 |
+
|
150 |
+
|
151 |
+
# read results from csv
|
152 |
+
# results = pd.read_csv("data/scatter.csv")
|
153 |
+
|
154 |
+
# st.info(results.to_markdown())
|
155 |
+
# st.info(results.columns)
|
156 |
+
# st.info(results.dtypes)
|
157 |
+
|
158 |
+
# st.scatter_chart(
|
159 |
+
# results,
|
160 |
+
# x="Model Size",
|
161 |
+
# y="Avg. Perf.",
|
162 |
+
# color='Model Series',
|
163 |
+
# # size='Avg. Perf.',
|
164 |
+
# )
|
165 |
+
|
166 |
+
# chart_data = pd.DataFrame(np.random.randn(20, 3), columns=["col1", "col2", "col3"])
|
167 |
+
# chart_data['col4'] = np.random.choice(['A','B','C'], 20)
|
168 |
+
|
169 |
+
# st.info(chart_data.to_markdown())
|
170 |
+
# st.info(chart_data.dtypes)
|
171 |
+
|
172 |
+
# st.scatter_chart(
|
173 |
+
# chart_data,
|
174 |
+
# x='col1',
|
175 |
+
# y='col2',
|
176 |
+
# color='col4',
|
177 |
+
# size='col3',
|
178 |
+
# )
|
images/l2ceval-logo.png
CHANGED
Git LFS Details
|
Git LFS Details
|