Spaces:
Running
Running
File size: 654 Bytes
82e8868 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
"""
Prompt Mühendisi Chatbot - Ana Uygulama Dosyası
Bu dosya, Hugging Face'de deployment için ana giriş noktasıdır.
"""
import streamlit as st
import os
from dotenv import load_dotenv
# Kendi modüllerimizi içe aktar
from prompt_templates import (
PROMPT_CATEGORIES,
predict_category,
extract_parameters,
create_prompt
)
from chatbot_backend import PromptEngineerChatbot
from api_integrations import (
APIManager,
OpenAIHandler,
GeminiHandler,
OpenRouterHandler
)
from streamlit_ui import main
# .env dosyasını yükle (varsa)
load_dotenv()
# Ana uygulamayı çalıştır
if __name__ == "__main__":
main()
|