form16-parser / app.py
APPLE
poetry
4b05e11
raw
history blame
970 Bytes
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()