Riswan-Nopiyar commited on
Commit
225675b
·
verified ·
1 Parent(s): ca51ffc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -4,12 +4,9 @@ from functions import random_plot, add_message, chat_mem, print_like_dislike
4
  fig = random_plot()
5
 
6
  # Membuat antarmuka Gradio
7
- with gr.Blocks(fill_height=True, title="Chat Bot", css="footer {visibility: hidden}") as demo:
8
- chatbot = gr.Chatbot(
9
- elem_id="chatbot",
10
- bubble_full_width=False,
11
- scale=1,
12
- )
13
  chat_input = gr.Textbox(interactive=True,
14
  placeholder="Masukkan pesan...", show_label=False)
15
 
 
4
  fig = random_plot()
5
 
6
  # Membuat antarmuka Gradio
7
+ with gr.Blocks(fill_height=True, css="footer {visibility: hidden}") as demo:
8
+ chatbot = gr.ChatInterface( fn=echo, examples=[{"text": "hello"}, {"text": "hola"}, {"text": "merhaba"}], title="Chat Bot", multimodal=True, )
9
+
 
 
 
10
  chat_input = gr.Textbox(interactive=True,
11
  placeholder="Masukkan pesan...", show_label=False)
12