File size: 970 Bytes
4278cf0
4cafb76
4278cf0
4cafb76
 
 
 
 
 
 
4b05e11
 
 
4cafb76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import streamlit as st
import os

def clone_repo(repo_url):
    st.write("Cloning the repository...")
    os.system(f"git clone {repo_url}")

def install_dependencies():
    st.write("Installing dependencies using Poetry...")
    os.chdir("form16-parser")
    os.system("python -m pip install poetry")
    os.system("python -m poetry install")
    os.system("python -m poetry shell")

def main():
    st.title("GitHub Repo Cloner and Dependency Installer")

    # Input field for user to enter GitHub repository URL
    repo_url = st.text_input("Enter GitHub Repository URL:", "https://github.com/INF800/form16-parser")

    # Button to trigger cloning and dependency installation
    if st.button("Clone Repo and Install Dependencies"):
        clone_repo(repo_url)
        install_dependencies()
        st.write("Dependencies installed successfully!")

    from form16_parser import build_parser
    st.write(f"{build_parser}")

if __name__ == "__main__":
    main()