Skip to content

notlaedri/chainlit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,102 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title emoji colorFrom colorTo sdk app_port pinned license
QR Menu AI Assistant
💬
blue
green
docker
8000
false
apache-2.0

QR Menu AI Assistant

Bu depo, restoran menüleri için yapay zeka destekli bir sohbet asistanı prototipini içermektedir.

Chainlit, LangChain ve Google Gemini kullanılarak geliştirilmiştir.

Özellikler:

  • Restoran menüsü JSON dosyasından bilgi alabilir.
  • Menü hakkında soruları yanıtlayabilir.
  • Yemek önerileri sunabilir.
  • Kullanıcı dostu sohbet arayüzü.

Kurulum (Yerel):

  1. Depoyu klonlayın:
    git clone <depo_url>
    cd <depo_klasoru>
  2. Sanal ortam oluşturun ve aktifleştirin:
    python -m venv .venv
    source .venv/bin/activate # Linux/macOS
    # .venv\Scripts\activate # Windows
  3. Bağımlılıkları yükleyin:
    pip install -r requirements.txt
  4. .env dosyası oluşturun ve Google API anahtarınızı ekleyin:
    GOOGLE_API_KEY="YOUR_GOOGLE_API_KEY"
    TEST_MENU_URL="[https://raw.githubusercontent.com/notlaedri/chainlit/refs/heads/main/menu.json](https://raw.githubusercontent.com/notlaedri/chainlit/refs/heads/main/menu.json)" # Veya kendi menü URL'niz
  5. Uygulamayı çalıştırın:
    chainlit run app.py -w

Deployment (Hugging Face Spaces):

Bu uygulama Docker kullanılarak Hugging Face Spaces'e deploy edilebilir. Gerekli Dockerfile ve .dockerignore dosyaları depoda mevcuttur.

Space ayarlarında aşağıdaki gizliliklerin (secrets) tanımlanması gerekmektedir:

  • GOOGLE_API_KEY
  • TEST_MENU_URL

Space'in README.md dosyasında sdk: docker ve app_port: 8000 ayarları bulunmalıdır.


About

Build Conversational AI in minutes ⚡️

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 48.8%
  • TypeScript 48.1%
  • CSS 2.1%
  • JavaScript 0.8%
  • HTML 0.1%
  • Dockerfile 0.1%