awacke1 commited on
Commit
3eb6d0e
·
1 Parent(s): 131dba0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -17
app.py CHANGED
@@ -2,23 +2,6 @@
2
 
3
  import streamlit as st
4
 
5
- st.sidebar.title('GitHub Functions')
6
-
7
- url = st.sidebar.text_input("GitHub URL")
8
- url = 'https://github.com/AaronCWacker/Yggdrasil'
9
-
10
-
11
- if st.sidebar.button("Pull & Read"):
12
- pull_files_from_github_url(url)
13
-
14
- if st.sidebar.button("Append & Write"):
15
- pull_files_from_github_url(url)
16
-
17
- if st.sidebar.button("Create File"):
18
- pull_files_from_github_url(url)
19
-
20
- if st.sidebar.button("Delete File"):
21
- pull_files_from_github_url(url)
22
 
23
 
24
  def pull_files_from_github_url(url):
@@ -36,3 +19,20 @@ def pull_files_from_github_url(url):
36
  repo = Repo(dir_name)
37
  return [item.a_path for item in repo.tree.traverse()]
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  import streamlit as st
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
 
7
  def pull_files_from_github_url(url):
 
19
  repo = Repo(dir_name)
20
  return [item.a_path for item in repo.tree.traverse()]
21
 
22
+ url = st.sidebar.text_input("GitHub URL")
23
+ url = 'https://github.com/AaronCWacker/Yggdrasil'
24
+
25
+
26
+ st.sidebar.title('GitHub Functions')
27
+
28
+ if st.sidebar.button("Pull & Read"):
29
+ pull_files_from_github_url(url)
30
+
31
+ if st.sidebar.button("Append & Write"):
32
+ pull_files_from_github_url(url)
33
+
34
+ if st.sidebar.button("Create File"):
35
+ pull_files_from_github_url(url)
36
+
37
+ if st.sidebar.button("Delete File"):
38
+ pull_files_from_github_url(url)