5m4ck3r commited on
Commit
b87b19a
·
1 Parent(s): 801eb16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -34,12 +34,14 @@ def chat_cpu(user_input, chat_history=None):
34
  # Define a Gradio interface
35
  iface = gr.Interface(
36
  fn=chat_cpu,
37
- inputs=["text", gr.Textbox(predefined=True, placeholder="Chat history will appear here", lines=10)],
38
- outputs=[gr.Textbox(predefined=True, placeholder="Chat history will appear here", lines=15)],
 
39
  live=True,
40
  layout="vertical",
41
  theme="compact",
42
- title="Chat with AI",
 
43
  )
44
 
45
  # Launch the Gradio interface
 
34
  # Define a Gradio interface
35
  iface = gr.Interface(
36
  fn=chat_cpu,
37
+ inputs=["text", gr.Textbox(placeholder="Enter your message here")],
38
+ outputs=[gr.Textbox(placeholder="Chat history will appear here", lines=15, default="Chat AI", label="BOT", element_id="bot_history"),
39
+ gr.Textbox(placeholder="Chat history will appear here", lines=15, default="User", label="USER", element_id="user_history")],
40
  live=True,
41
  layout="vertical",
42
  theme="compact",
43
+ title="Chat AI",
44
+ css=".output {flex-direction: column-reverse;}",
45
  )
46
 
47
  # Launch the Gradio interface