{"id":15159943,"url":"https://github.com/george-mountain/web-app-builder--llm","last_synced_at":"2025-04-07T17:39:35.669Z","repository":{"id":217237069,"uuid":"735876882","full_name":"george-mountain/web-app-builder--LLM","owner":"george-mountain","description":"Building Static Web Applications using Large Language Model. From hand sketched documents, images and screenshots to proper web pages.","archived":false,"fork":false,"pushed_at":"2024-03-12T01:12:35.000Z","size":2210,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T10:21:15.637Z","etag":null,"topics":["ai","llm","llm-serving","pypi","pypi-package","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/george-mountain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-26T10:33:37.000Z","updated_at":"2025-02-28T09:43:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"43c6b7db-fe19-4f35-ac90-7f781bb17c6b","html_url":"https://github.com/george-mountain/web-app-builder--LLM","commit_stats":{"total_commits":35,"total_committers":1,"mean_commits":35.0,"dds":0.0,"last_synced_commit":"af521fdbbcf2c062d0d2f694f45be61a0d5f3634"},"previous_names":["george-mountain/web-app-builder--llm"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/george-mountain%2Fweb-app-builder--LLM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/george-mountain%2Fweb-app-builder--LLM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/george-mountain%2Fweb-app-builder--LLM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/george-mountain%2Fweb-app-builder--LLM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/george-mountain","download_url":"https://codeload.github.com/george-mountain/web-app-builder--LLM/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247699766,"owners_count":20981609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","llm","llm-serving","pypi","pypi-package","streamlit"],"created_at":"2024-09-26T22:02:39.791Z","updated_at":"2025-04-07T17:39:35.645Z","avatar_url":"https://github.com/george-mountain.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### Install Package\n\n```bash\npip install webapp_builder\n```\n\n\n### Example Usage\n\n```python\n# Importing the CodeGenerator and ImageProcessor classes\nfrom webapp_builder import CodeGenerator, ImageProcessor\n\nfrom dotenv import load_dotenv, find_dotenv\nimport os\nimport openai\nload_dotenv(find_dotenv())\n# OpenAI API Key\napi_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.api_key = api_key\n# Create instances of the classes\ncode_generator = CodeGenerator()\nimage_processor = ImageProcessor()\n# Example usage of CodeGenerator\ncode_text = \"searchbar at the top right corner, navigation menu at the header, company logo at the top left corner. \"\ngenerated_code = code_generator.generate_code(code_text)\nprint(generated_code)\n\n# Example usage of ImageProcessor\nimage_path = '/path/to_your_web_image_here/'\nimage_description = image_processor.get_image_description(image_path, api_key)\nprint(image_description)\n```\n\nFor running the Streamlit app, you can create a separate Python script (let's call it `app_runner.py`) with the following content:\n\n```python\n# app_runner.py\nfrom webapp_builder import main\nfrom dotenv import load_dotenv, find_dotenv\nimport os\nimport openai\nload_dotenv(find_dotenv())\n# OpenAI API Key\napi_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.api_key = api_key\nif _name_ == \"_main_\":\n    main()\n```\n\nThen, you can run this script to launch the Streamlit app:\n\n```bash\nstreamlit run app_runner.py\n```\n\n\nEnsure you have your OpenAI API key configured in your environment variables or pass it directly when calling methods that require it.\n\n\n# web-app-builder--LLM\n#### App Demo (Video Demo)\nhttps://github.com/george-mountain/web-app-builder--LLM/assets/19597087/4541e5f5-844d-4862-8745-bac3436de6ec\n\n\n# Web Builder App\n\nWeb Builder App is a Streamlit-based application that allows users to upload an image, generate code based on the contents of the image, and view the code implementation.\n\n## Table of Contents\n- [Data Flow Diagram](#data-flow-diagram)\n- [Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n- [Usage](#usage)\n  - [Running the Application](#running-the-application)\n- [License](#license)\n\n\n## Data Flow Diagram\n![dataFlow](https://github.com/george-mountain/web-app-builder--LLM/assets/19597087/827cfd54-ef13-4040-8184-8a93f097b5af)\n\n\n\n## Getting Started\n\n### Prerequisites\n\nMake sure you have the following software installed on your machine:\n\n- Python 3.8 or later\n- Pytorch Cuda: CUDA Version \u003e=11.8. Install from here - [Pytorch CUDA Installation](https://pytorch.org/)\n\n### Installation From Github\n---\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/your-username/web-builder-app.git\n   cd web-builder-app\n   ```\n\n2. Create a virtual environment:\n\n   ```bash\n   python -m venv env\n   ```\n\n3. Activate the virtual environment:\n\n   - For Windows:\n\n     ```bash\n     .\\env\\Scripts\\activate\n     ```\n\n   - For Linux/Mac:\n\n     ```bash\n     source env/bin/activate\n     ```\n\n4. Install dependencies:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n5. Create .env file:\n    Create .env file and place your API keys in the file. A sample of how to do this is seen on the .env file\n\n\n6. Alternative installation from Github using pip:\n    You can install the project using pip by running the command below:\n\n   ```bash\n   pip install git+https://github.com/george-mountain/web-app-builder--LLM\n   ```\n\n\n## Usage\n\n### Running the Application\n\nTo run the application locally:\n\n```bash\nstreamlit run main.py\n```\n\nVisit the provided URL in your web browser to interact with the application.\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://opensource.org/license/mit/) file for details.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorge-mountain%2Fweb-app-builder--llm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeorge-mountain%2Fweb-app-builder--llm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorge-mountain%2Fweb-app-builder--llm/lists"}