Spaces:
Configuration error
Configuration error
from fastapi import FastAPI | |
from pydantic import BaseModel | |
from app.model import create_model | |
from app.database import connect_to_database | |
from app.integration import integrate_data | |
import os | |
app = FastAPI() | |
async def root(): | |
def main(): | |
# Veritabanına bağlan | |
db_connection = connect_to_database() | |
# Modeli oluştur | |
model = create_model() | |
# Veriyi entegre et | |
integrate_data(db_connection, model) | |
if __name__ == "__main__": | |
main() | |