make blog
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ df = pd.read_csv("utils/data_preview.csv")
|
|
| 47 |
st.dataframe(df)
|
| 48 |
st.header("Model")
|
| 49 |
selected_model1 = st.selectbox(
|
| 50 |
-
"Select a code generation model", MODELS
|
| 51 |
)
|
| 52 |
with open(f"datasets/{selected_model1.lower()}.txt", "r") as f:
|
| 53 |
text = f.read()
|
|
@@ -58,7 +58,7 @@ st.title("2 - Model architecture")
|
|
| 58 |
st.markdown("Most code generation models use GPT style architectures trained on code. Some use encoder-decoder architectures such as AlphaCode.")
|
| 59 |
st.header("Model")
|
| 60 |
selected_model2 = st.selectbox(
|
| 61 |
-
"Select a code generation model", MODELS
|
| 62 |
)
|
| 63 |
with open(f"architectures/{selected_model2.lower()}.txt", "r") as f:
|
| 64 |
text = f.read()
|
|
@@ -76,7 +76,7 @@ st.markdown(intro)
|
|
| 76 |
st.title("4 - Code generation 💻")
|
| 77 |
st.header("Models")
|
| 78 |
selected_models3 = st.sidebar.multiselect(
|
| 79 |
-
"Select code generation models to compare", MODELS, default=["CodeParrot"]
|
| 80 |
)
|
| 81 |
st.header("Examples")
|
| 82 |
examples = load_examples()
|
|
|
|
| 47 |
st.dataframe(df)
|
| 48 |
st.header("Model")
|
| 49 |
selected_model1 = st.selectbox(
|
| 50 |
+
"Select a code generation model", MODELS, key=1
|
| 51 |
)
|
| 52 |
with open(f"datasets/{selected_model1.lower()}.txt", "r") as f:
|
| 53 |
text = f.read()
|
|
|
|
| 58 |
st.markdown("Most code generation models use GPT style architectures trained on code. Some use encoder-decoder architectures such as AlphaCode.")
|
| 59 |
st.header("Model")
|
| 60 |
selected_model2 = st.selectbox(
|
| 61 |
+
"Select a code generation model", MODELS, key=2
|
| 62 |
)
|
| 63 |
with open(f"architectures/{selected_model2.lower()}.txt", "r") as f:
|
| 64 |
text = f.read()
|
|
|
|
| 76 |
st.title("4 - Code generation 💻")
|
| 77 |
st.header("Models")
|
| 78 |
selected_models3 = st.sidebar.multiselect(
|
| 79 |
+
"Select code generation models to compare", MODELS, default=["CodeParrot"], key=3
|
| 80 |
)
|
| 81 |
st.header("Examples")
|
| 82 |
examples = load_examples()
|