BotifyCloudAdmin commited on
Commit
171ec81
·
verified ·
1 Parent(s): d192e97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -65,14 +65,7 @@ def check_password(input_password):
65
  else:
66
  return gr.update(value="", interactive=True), gr.update(visible=False)
67
 
68
- # Custom CSS to adjust the chat interface height
69
- custom_css = """
70
- #chat_interface .overflow-y-auto {
71
- height: 600px;
72
- }
73
- """
74
-
75
- with gr.Blocks(css=custom_css) as demo:
76
  with gr.Column():
77
  password_input = gr.Textbox(
78
  type="password", label="Enter Password", interactive=True
@@ -88,8 +81,8 @@ with gr.Blocks(css=custom_css) as demo:
88
  )
89
  chat = gr.ChatInterface(
90
  respond,
91
- additional_inputs=[],
92
- elem_id="chat_interface" # Assign an element ID for CSS targeting
93
  )
94
 
95
  with gr.Column():
 
65
  else:
66
  return gr.update(value="", interactive=True), gr.update(visible=False)
67
 
68
+ with gr.Blocks() as demo:
 
 
 
 
 
 
 
69
  with gr.Column():
70
  password_input = gr.Textbox(
71
  type="password", label="Enter Password", interactive=True
 
81
  )
82
  chat = gr.ChatInterface(
83
  respond,
84
+ chatbot=gr.Chatbot(height=600), # Set the desired height here
85
+ additional_inputs=[]
86
  )
87
 
88
  with gr.Column():