File size: 295 Bytes
c4ef1ac
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr

# def greet(name):
#     return "Hello " + name + "!!"

# demo = gr.Interface(fn=greet, inputs="text", outputs="text")
# demo.launch()

import random

def random_response(message, history):
    return random.choice(["Yes", "No"])


gr.ChatInterface(random_response).launch()