Riswan-Nopiyar commited on
Commit
44ebfa5
·
verified ·
1 Parent(s): 4066990

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -3,11 +3,9 @@ from functions import random_plot, add_message, chat_mem, print_like_dislike
3
 
4
  fig = random_plot()
5
 
 
6
  # Membuat antarmuka Gradio
7
- with gr.Blocks(css="""
8
- footer {visibility: hidden;}
9
- #chatbot {height: 800px;} /* Menambahkan aturan CSS untuk mengatur tinggi chatbot */
10
- """) as demo:
11
  gr.HTML("<div style='text-align: center;'><h2>Chat bot Nopiyar.my.id</h2></div>") # Menambahkan judul di sini dengan CSS untuk memposisikan di tengah
12
  chatbot = gr.Chatbot(
13
  label="NPR",
@@ -17,6 +15,7 @@ with gr.Blocks(css="""
17
  avatar_images=(None, "https://iili.io/d5tk44a.md.png")
18
  )
19
 
 
20
  chat_input = gr.Textbox(interactive=True,
21
  placeholder="Masukkan pesan...", show_label=False)
22
 
 
3
 
4
  fig = random_plot()
5
 
6
+
7
  # Membuat antarmuka Gradio
8
+ with gr.Blocks(fill_height=true, css="footer {visibility: hidden}") as demo:
 
 
 
9
  gr.HTML("<div style='text-align: center;'><h2>Chat bot Nopiyar.my.id</h2></div>") # Menambahkan judul di sini dengan CSS untuk memposisikan di tengah
10
  chatbot = gr.Chatbot(
11
  label="NPR",
 
15
  avatar_images=(None, "https://iili.io/d5tk44a.md.png")
16
  )
17
 
18
+
19
  chat_input = gr.Textbox(interactive=True,
20
  placeholder="Masukkan pesan...", show_label=False)
21