Loubna ben allal
commited on
Commit
·
d3dda8c
1
Parent(s):
1e8c169
update app
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ selected_models = st.multiselect('Select code generation models to compare',
|
|
28 |
models,
|
29 |
default=["CodeParrot"])
|
30 |
st.sidebar.header("Tasks:")
|
31 |
-
|
32 |
selected_task = st.sidebar.selectbox("Select a task:", tasks, default="Model architecture")
|
33 |
|
34 |
st.title("Code Generation Models👩💻")
|
@@ -43,8 +43,7 @@ if selected_task == "Model architecture":
|
|
43 |
text = f.read()
|
44 |
#architectures[model] = text
|
45 |
st.markdown(f"### {model}:")
|
46 |
-
st.markdown(text)
|
47 |
-
|
48 |
elif selected_task == "Pretraining dataset":
|
49 |
st.markdown("## Pretraining Datasets")
|
50 |
for model in selected_models:
|
@@ -53,7 +52,6 @@ elif selected_task == "Pretraining dataset":
|
|
53 |
#datasets[model] = text
|
54 |
st.markdown(f"### {model}:")
|
55 |
st.markdown(text)
|
56 |
-
|
57 |
elif selected_task == "Prompting":
|
58 |
for model in selected_models:
|
59 |
if model == "CodeParrot":
|
|
|
28 |
models,
|
29 |
default=["CodeParrot"])
|
30 |
st.sidebar.header("Tasks:")
|
31 |
+
tasks = ["Model architecture", "Model evaluation", "Pretraining dataset", "Prompting"]
|
32 |
selected_task = st.sidebar.selectbox("Select a task:", tasks, default="Model architecture")
|
33 |
|
34 |
st.title("Code Generation Models👩💻")
|
|
|
43 |
text = f.read()
|
44 |
#architectures[model] = text
|
45 |
st.markdown(f"### {model}:")
|
46 |
+
st.markdown(text)
|
|
|
47 |
elif selected_task == "Pretraining dataset":
|
48 |
st.markdown("## Pretraining Datasets")
|
49 |
for model in selected_models:
|
|
|
52 |
#datasets[model] = text
|
53 |
st.markdown(f"### {model}:")
|
54 |
st.markdown(text)
|
|
|
55 |
elif selected_task == "Prompting":
|
56 |
for model in selected_models:
|
57 |
if model == "CodeParrot":
|