Izazo / app.py
NovakTJ
clean commit vasinih promena
ca5d3ff
raw
history blame contribute delete
789 Bytes
import gradio as gr
from src.agent import chat_with_turbot
def respond(message):
"""
Main chat function for TurBot.
"""
try:
response = chat_with_turbot(message, [])
return response
except Exception as e:
return f"Izvinjavam se, došlo je do greške: {str(e)}"
# Create a simple interface
demo = gr.Interface(
fn=respond,
inputs="text",
outputs="text",
title="TurBot - Digitalni Asistent za Turističku Agenciju",
description="Dobrodošli! Ja sam TurBot, vaš digitalni asistent za putovanja."
)
if __name__ == "__main__":
print("🚀 Starting TurBot application...")
print("📱 Server will be available at: http://127.0.0.1:7860")
demo.launch(server_name="127.0.0.1", server_port=7860)
print(f"JOJOJO")