File size: 342 Bytes
ecc1e29
3d47cbb
ecc1e29
3d47cbb
 
 
 
 
 
ecc1e29
 
3d47cbb
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr
# first, add your import lines

def echo(message, history): 
    return message
# Code the function that your chatbot will run! 

chatbot = gr.ChatInterface(echo)
# Use gradio to create an interface where your user can use ChatInterface --> needs a function as a parameter to run

chatbot.launch()
# launches our chatbot