daniloedu commited on
Commit
26f28ab
·
1 Parent(s): 7d5481c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import gradio as gr
2
- from gradio.components import Textbox, TextArea
3
 
4
  load_dotenv()
5
 
@@ -36,12 +36,12 @@ iface = gr.Interface(
36
  fn=respond,
37
  inputs=[
38
  Textbox(label="Prompt"),
39
- TextArea(label="Chat History", height=240),
40
  Textbox(label="System message", lines=2, default="A conversation between a user and an AI assistant. The assistant gives helpful and honest answers.")
41
  ],
42
  outputs=[
43
  Textbox(label="Prompt"),
44
- TextArea(label="Chat History", height=240),
45
  Textbox(label="System message")
46
  ],
47
  server_name="0.0.0.0",
 
1
  import gradio as gr
2
+ from gradio.components import Textbox, Chat
3
 
4
  load_dotenv()
5
 
 
36
  fn=respond,
37
  inputs=[
38
  Textbox(label="Prompt"),
39
+ Chat(label="Chat History", height=240),
40
  Textbox(label="System message", lines=2, default="A conversation between a user and an AI assistant. The assistant gives helpful and honest answers.")
41
  ],
42
  outputs=[
43
  Textbox(label="Prompt"),
44
+ Chat(label="Chat History", height=240),
45
  Textbox(label="System message")
46
  ],
47
  server_name="0.0.0.0",