--- title: Ecore Gen emoji: 👁 colorFrom: pink colorTo: purple sdk: gradio sdk_version: 4.36.1 app_file: app.py pinned: true short_description: Gradio App for Generating and Validating Ecore Files --- # Gradio App for Generating and Validating Ecore Files This repository contains a Gradio-based web application that leverages open-source language models from HuggingChat API and OpenAI API. The app provides two tabs: one for using models from HuggingChat and the other for models from OpenAI. Both tabs allow users to generate an Ecore file from a natural language description and iteratively validate it. 🚕🚕 Check the full code github [Github Repo](https://github.com/AlaouiMdaghriAhmed/Ecore-Gen) ## Features - Two Tabs for Model Selection: - HuggingChat API: Uses open-source language models from HuggingChat. *deprecated in this version check the original github repo* - OpenAI API: Uses language models from OpenAI. - Ecore File Generation: Converts natural language descriptions into Ecore files. - Iterative Validation: Validates the generated Ecore files iteratively to ensure correctness. ## Installation 1. Clone the repository: ```bash git clone https://github.com/your-username/your-repo-name.git cd your-repo-name ``` 2. Install the required packages: ```bash pip install -r requirements.txt ``` ## Usage 1. Navigate to the project directory: ```bash cd your-repo-name ``` 2. Run the application: ```bash python app.py ``` 3. Open your web browser and go to the provided local address to interact with the app. ## Folder Structure - app.py: Main script to run the Gradio app. - requirements.txt: List of required Python packages. - README.md: Project documentation. ## Contributing Contributions are welcome! Please create a new branch for each feature or bug fix: ```bash git checkout -b feature/your-feature-name ``` Submit a pull request with a detailed explanation of your changes. ## Contact For any questions or feedback, please open an issue or contact [mad.mik788@gmail.com].