Skip to content

Commit

Permalink
Version 2.0 πŸš€
Browse files Browse the repository at this point in the history
  • Loading branch information
samadpls committed Nov 28, 2023
1 parent 4e50809 commit e584a26
Show file tree
Hide file tree
Showing 4 changed files with 234 additions and 80 deletions.
7 changes: 7 additions & 0 deletions .env_example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
DETA_PROJECT_KEY=
HUGGINGFACE_API_TOKEN=
REPO_ID=
CLIENT_ID=
CLIENT_SECRET=
REDIRECT_URI=
TEMPLATE=
50 changes: 33 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,50 @@

<img src="https://github.com/samadpls/Querypls/assets/94792103/525bb160-1fdd-4316-b678-d9a7d86d2d3a">
<img src="static/image/logo.png">

# Querypls - SQL Query Provider πŸ—„
![Supported python versions](https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11-blue)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![License](https://img.shields.io/badge/License-MIT%202.0-blue.svg)](LICENSE)
<img src='https://img.shields.io/github/stars/samadpls/querypls?color=red&label=stars&logoColor=black&style=social'>

Querypls is a simple web application built with Streamlit that acts as an SQL query provider. It allows users to enter SQL queries and receive query results as responses. The application uses the power of language models provided by Hugging Face to generate SQL queries based on user input.

## Key Features

πŸ” Enter SQL queries and receive query results as responses.
πŸ€– Uses language models from Hugging Face for generating SQL queries.
πŸ’» User-friendly interface for easy interaction.

## Usage

To use Querypls, visit the website [here](https://querypls.streamlit.app/).
# πŸ’¬ Querypls - Prompt to SQL

Querypls is a web application that provides an interactive chat interface, simplifying SQL query generation. Users can effortlessly enter SQL queries and receive corresponding results. The application harnesses the capabilities of the language models from Hugging Face to generate SQL queries based on user input.

## Key Features

πŸ’¬ Interactive chat interface for easy communication.
πŸ” Enter SQL queries and receive query results as responses.
πŸ€– Utilizes language models from Hugging Face for advanced query generation ([Querypls-prompt2sql](https://huggingface.co/samadpls/querypls-prompt2sql)).
πŸ’» User-friendly interface for seamless interaction.
πŸ”’ Secure Google Authentication for OAuth2 integration.
πŸ”„ Chat history recording for easy reference.

https://github.com/samadpls/Querypls/assets/94792103/e8fd1192-aa75-41c9-a680-f4ee99d9087d
## How to Contribute

1. Clone the repository:
```bash
git clone https://github.com/samadpls/Querypls.git
```

2. Navigate to the project directory:
```bash
cd Querypls
```

3. Install dependencies:
```bash
pip install -r requirements.txt
```

4. Create a `.env` file based on `.env_example` and set the necessary variables.

5. Run the application:
```bash
streamlit run app.py
```

## Improving Query Generation
6. Open the provided link in your browser to use Querypls.

If you have expertise in improving the prompt or generating more accurate SQL queries, your contribution in enhancing the language model would be highly appreciated. Feel free to experiment and suggest changes to the prompt template in order to achieve better query generation.
<a target="_blank" href="https://colab.research.google.com/github/samadpls/Querypls/blob/main/Querypls.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>
## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
Expand Down
Loading

0 comments on commit e584a26

Please sign in to comment.