Our purpose in this competition to develop an AI project for sustainable cities and green tomorrows.
- Python: To use this code you have to be using Python 3.10 or higher.
- Dependencies: Install dependencies from the
requirements.txt
file using the following code:
pip install -r requirements.txt
To get started, follow these steps:
Now to run the code, you need to use Streamlit. Run the app.py
file in the user interface folder using the following code:
streamlit run app.py
Our Streamlit application contains five tabs. The first tab is for creating accounts (for sellers). The instructions to sign up to system:
- Enter username.
- Enter password.
- Enter the IBAN that you will get the payments.
- Enter your ID no (for security).
- Enter your business adress (for security).
The second one is for product selling (adding). The instructions to add product:
- Enter informations about your meal (AI will improve it).
- Take a photo of your meal.
- Enter the price of your meal.
- Enter your IBAN.
- Enter your ID no (for security).
The third tab provides a search product feature. Here’s how it works:
- Enter the product name you want to buy and search it.
- Don't forget learn the ID of the meal you will buy.
After decide the meal that you will buy, you're going to buy it from buy product page.
- Enter the ID of the meal.
- Enter your adress.
- Enter your ID no.
- Enter the CVV of your card.
- Enter your card number.
As a seller, you can see your products and analysis from this page. Here what should you do:
- Enter your username.
- Enter your password.
- After login, you can see your product and analysis that made for you.
We've added a powerful text generation feature in Sell Product tab of our application. At first, we tried to fine-tune Llama and Gemma models, and actually we did it. But there was an option called Gemini. We did the tests and decided to use gemini-1.5-flash. So we decided to use Gemini API. After hitting the "Submit Product" button, we're sending an API request to Gemini (gemini-1.5-flash) and improve the title-description of the meal.
You can see the example.
- 1 T4-15GB GPU
- 12 GB RAM
Warning
You may experience issues running this on less powerful hardware.
This project makes use of the following models:
-
gemini-1.5-flash:
- Source: DeepMind
- License: API Used - No License Info
-
ahmeterdempmk/FoodLlaMa-LoRA-Based:
- Source: Hugging Face
- License: Apache 2.0
-
ahmeterdempmk/Gemma2-2b-E-Commerce-Tuned:
- Source: Hugging Face
- License: Apache 2.0
-
ahmeterdempmk/Llama-3.1-8B-Fast-Food-Based-Tuned:
- Source: Hugging Face
- License: Apache 2.0
-
Emir Kaan Özdemir - LSTM Based Time Series Model:
- Source: GitHub
- License: Apache 2.0
Note
Please ensure compliance with each model's license when using or distributing this project.