import gradio as gr from search import google_search from nlp_engine import answer_question def ask_ai(question): # 1) Web araması results = google_search(question) # 2) Cevap üretme answer = answer_question(question, results) return answer iface = gr.Interface( fn=ask_ai, inputs=gr.Textbox(lines=2, placeholder="Sorunu yaz..."), outputs="text", title="Brand-Free AI Asistan", description="Sıfır model AI + Canlı web araması (marka bağımsız)" ) if __name__ == "__main__": iface.launch()