File size: 507 Bytes
abb5d1c
 
7d90900
d73c358
 
5f413ac
7d90900
 
1
2
3
4
5
6
7
8
import gradio as gr

def greet(name,history):
    print(history)
    return "Hello " + name + "!!"  
 
iface = gr.ChatInterface(greet, chatbot=gr.Chatbot(height=300), textbox=gr.Textbox(placeholder="Ask me a question", container=False, scale=7), title="IMDB Sentiment Data Analysis Chat", examples = ["Which is most postive review for a movie?", "What is the most reviewed movie?"], theme="soft", cache_examples=False, retry_btn=None, undo_btn="Delete Previous", clear_btn="Clear",)
iface.launch(share=True)