Spaces:
Sleeping
Sleeping
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) |