update
Browse files
app.py
CHANGED
@@ -29,6 +29,10 @@ def generate_code(model_name, gen_prompt, max_new_tokens, temperature, seed):
|
|
29 |
generated_text = r.json()["data"][0]
|
30 |
return generated_text
|
31 |
|
|
|
|
|
|
|
|
|
32 |
|
33 |
st.set_page_config(page_icon=":laptop:", layout="wide")
|
34 |
with open("utils/table_contents.txt", "r") as f:
|
@@ -43,9 +47,10 @@ st.markdown(intro)
|
|
43 |
|
44 |
# Pretraining datasets
|
45 |
st.subheader("1 - Pretraining datasets")
|
46 |
-
with open("datasets/intro.txt", "r") as f:
|
47 |
-
intro = f.read()
|
48 |
-
st.markdown(intro)
|
|
|
49 |
#st.markdown(
|
50 |
# f"Preview of some code files from Github repositories in [Github-code dataset]({GITHUB_CODE}):"
|
51 |
#)
|
|
|
29 |
generated_text = r.json()["data"][0]
|
30 |
return generated_text
|
31 |
|
32 |
+
def read_markdown(path):
|
33 |
+
with open(path, "r") as f:
|
34 |
+
output = f.read()
|
35 |
+
st.markdown(output)
|
36 |
|
37 |
st.set_page_config(page_icon=":laptop:", layout="wide")
|
38 |
with open("utils/table_contents.txt", "r") as f:
|
|
|
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}):"
|
56 |
#)
|