Spaces:
No application file
No application file
from fastapi import FastAPI | |
from ai_module import get_ai_response | |
app = FastAPI() | |
def home(): | |
return {"message": "Welcome to the Solar Industry AI Assistant API!"} | |
def ask_solar_assistant(query: str): | |
response = get_ai_response(query) | |
return {"response": response} | |