loubnabnl HF staff commited on
Commit
0b16412
1 Parent(s): 50f4554
Files changed (1) hide show
  1. app.py +4 -13
app.py CHANGED
@@ -47,9 +47,6 @@ st.markdown(intro)
47
 
48
  # Pretraining datasets
49
  st.subheader("1 - Pretraining datasets")
50
- #with open("datasets/intro.txt", "r") as f:
51
- # intro = f.read()
52
- #st.markdown(intro)
53
  read_markdown("datasets/intro.txt")
54
  #st.markdown(
55
  # f"Preview of some code files from Github repositories in [Github-code dataset]({GITHUB_CODE}):"
@@ -58,10 +55,8 @@ read_markdown("datasets/intro.txt")
58
  #st.dataframe(df)
59
  col1, col2= st.columns([1,2])
60
  with col1:
61
- selected_model = st.selectbox(" ", MODELS, key=1)
62
- with open(f"datasets/{selected_model.lower()}.txt", "r") as f:
63
- text = f.read()
64
- st.markdown(text)
65
 
66
  # Model architecture
67
  st.subheader("2 - Model architecture")
@@ -71,17 +66,13 @@ with col1:
71
  selected_model = st.selectbox(
72
  "Select a code generation model", MODELS, key=2
73
  )
74
- with open(f"architectures/{selected_model.lower()}.txt", "r") as f:
75
- text = f.read()
76
- st.markdown(text)
77
  if selected_model == "InCoder":
78
  st.image(INCODER_IMG, caption="Figure 1: InCoder training", width=700)
79
 
80
  # Model evaluation
81
  st.subheader("3 - Code models evaluation")
82
- with open("evaluation/intro.txt", "r") as f:
83
- intro = f.read()
84
- st.markdown(intro)
85
 
86
  # Code generation
87
  st.subheader("4 - Code generation ✨")
 
47
 
48
  # Pretraining datasets
49
  st.subheader("1 - Pretraining datasets")
 
 
 
50
  read_markdown("datasets/intro.txt")
51
  #st.markdown(
52
  # f"Preview of some code files from Github repositories in [Github-code dataset]({GITHUB_CODE}):"
 
55
  #st.dataframe(df)
56
  col1, col2= st.columns([1,2])
57
  with col1:
58
+ selected_model = st.selectbox("", MODELS, key=1)
59
+ read_markdown(f"datasets/{selected_model.lower()}.txt")
 
 
60
 
61
  # Model architecture
62
  st.subheader("2 - Model architecture")
 
66
  selected_model = st.selectbox(
67
  "Select a code generation model", MODELS, key=2
68
  )
69
+ read_markdown(f"architectures/{selected_model.lower()}.txt")
 
 
70
  if selected_model == "InCoder":
71
  st.image(INCODER_IMG, caption="Figure 1: InCoder training", width=700)
72
 
73
  # Model evaluation
74
  st.subheader("3 - Code models evaluation")
75
+ read_markdown("evaluation/intro.txt")
 
 
76
 
77
  # Code generation
78
  st.subheader("4 - Code generation ✨")