File size: 643 Bytes
cb163f5
c678721
cb163f5
06640b6
c678721
 
 
 
a6a91bf
c678721
 
 
 
06640b6
 
e818436
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr
import time


def slow_echo(message, history):
    for i in range(len(message)):
        time.sleep(0.05)
        yield "Tu escribiste: " + message[: i+1]

demo = gr.ChatInterface(slow_echo, 
                        title="Chat básico",
                        description= 'Autor: <a href=\"https://huggingface.co/Antonio49\">Antonio Fernández</a> de <a href=\"https://saturdays.ai/\">SaturdaysAI</a>. Formación: <a href=\"https://cursos.saturdays.ai/courses/\">Cursos Online AI</a> Aplicación desarrollada con fines docentes'            
                        ).queue()

if __name__ == "__main__":
    demo.launch()