soiz commited on
Commit
1e6dd0c
·
verified ·
1 Parent(s): d7d003f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import subprocess
2
  import streamlit as st
 
3
 
4
  def clone_github_repo(repo_url, destination_folder=None):
5
  if destination_folder is None:
@@ -18,5 +19,10 @@ destination_folder = st.text_input("Enter Destination Folder (Optional)")
18
 
19
  if st.button("Clone Repository"):
20
  clone_github_repo(repo_url, destination_folder)
 
 
 
 
 
21
  import os
22
  os.system("streamlit run app.py")
 
1
  import subprocess
2
  import streamlit as st
3
+ import os
4
 
5
  def clone_github_repo(repo_url, destination_folder=None):
6
  if destination_folder is None:
 
19
 
20
  if st.button("Clone Repository"):
21
  clone_github_repo(repo_url, destination_folder)
22
+
23
+ # Streamlit app configuration
24
+ if 'STREAMLIT_PORT' not in os.environ:
25
+ os.environ['STREAMLIT_PORT'] = '7860'
26
+
27
  import os
28
  os.system("streamlit run app.py")