Spaces:
Runtime error
Runtime error
Loubna ben allal
commited on
Commit
•
6fb9ce7
1
Parent(s):
fc158ea
update app
Browse files
app.py
CHANGED
@@ -31,11 +31,10 @@ st.sidebar.header("Tasks:")
|
|
31 |
tasks = ["Model architecture", "Model evaluation", "Pretraining dataset", "Prompting"]
|
32 |
selected_task = st.sidebar.selectbox("Select a task:", tasks)
|
33 |
|
34 |
-
st.title("Code Generation Models👩💻")
|
35 |
-
|
36 |
architectures = {}
|
37 |
datasets = {}
|
38 |
pipelines = {}
|
|
|
39 |
if selected_task == "Model architecture":
|
40 |
st.markdown("## Model architectures")
|
41 |
for model in selected_models:
|
@@ -43,14 +42,14 @@ if selected_task == "Model architecture":
|
|
43 |
text = f.read()
|
44 |
#architectures[model] = text
|
45 |
st.markdown(f"### {model}:")
|
46 |
-
st.markdown(text)
|
47 |
-
|
48 |
-
st.
|
49 |
for model in selected_models:
|
50 |
with open(f"datasets/{model.lower()}.txt", "r") as f:
|
51 |
text = f.read()
|
52 |
#datasets[model] = text
|
53 |
-
st.markdown(f"
|
54 |
st.markdown(text)
|
55 |
elif selected_task == "Prompting":
|
56 |
for model in selected_models:
|
|
|
31 |
tasks = ["Model architecture", "Model evaluation", "Pretraining dataset", "Prompting"]
|
32 |
selected_task = st.sidebar.selectbox("Select a task:", tasks)
|
33 |
|
|
|
|
|
34 |
architectures = {}
|
35 |
datasets = {}
|
36 |
pipelines = {}
|
37 |
+
"""
|
38 |
if selected_task == "Model architecture":
|
39 |
st.markdown("## Model architectures")
|
40 |
for model in selected_models:
|
|
|
42 |
text = f.read()
|
43 |
#architectures[model] = text
|
44 |
st.markdown(f"### {model}:")
|
45 |
+
st.markdown(text) """
|
46 |
+
if selected_task == "Pretraining dataset":
|
47 |
+
st.title("Pretraining Datasets 📚")
|
48 |
for model in selected_models:
|
49 |
with open(f"datasets/{model.lower()}.txt", "r") as f:
|
50 |
text = f.read()
|
51 |
#datasets[model] = text
|
52 |
+
st.markdown(f"## {model}:")
|
53 |
st.markdown(text)
|
54 |
elif selected_task == "Prompting":
|
55 |
for model in selected_models:
|