ashwinaravind commited on
Commit
3a126f6
·
verified ·
1 Parent(s): a2b1834

added chat interface

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -3,5 +3,21 @@ import gradio as gr
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
- iface = gr.ChatInterface(fn=greet, inputs="text", outputs="text")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  iface.launch()
 
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
+ iface = gr.ChatInterface(fn=greet,
7
+ chatbot=gr.Chatbot(height=300),
8
+ textbox=gr.Textbox(placeholder="Ask me a question", container=False, scale=7),
9
+ title="Oscar 2023 Bot - Amazon Bedrock and Titan",
10
+ theme="soft",
11
+ examples=[
12
+ "Who won the best music award?",
13
+ "Which award did Avatar win?",
14
+ "Who won the Best Actor award in a supporting role?",
15
+ "Who is the lyricist for the song Natu Natu from RRR?",
16
+ "How many awards did the film RRR win?",
17
+ "Which was the Best International Feature Film?",
18
+ ],
19
+ cache_examples=False,
20
+ retry_btn=None,
21
+ undo_btn="Delete Previous",
22
+ clear_btn="Clear",)
23
  iface.launch()