cikode / app.py
adride00
Refactor app.py to implement a simplified chat interface using a new answer function. Removed previous InferenceClient and related logic, replacing it with a basic response generation that includes the current date and a random reply. Updated the Gradio interface accordingly.
a6a6f04
raw
history blame
221 Bytes
import gradio as gr, random, datetime
def answer(q):
return f"({datetime.date.today()}) Gracias por tu pregunta. {random.choice(['¡Claro!', 'Por supuesto!'])}"
gr.ChatInterface(answer, title="IA de Cikode").launch()