jdesiree commited on
Commit
40f823c
Β·
verified Β·
1 Parent(s): 932359f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -11
app.py CHANGED
@@ -193,13 +193,22 @@ with gr.Blocks(theme=theme, css="""
193
  margin-bottom: 1rem;
194
  flex-shrink: 0;
195
  }
196
- .chat-container {
 
 
 
 
 
 
 
197
  flex: 1;
198
  display: flex;
199
  flex-direction: column;
200
  min-height: 0;
201
  margin-bottom: 1rem;
202
  }
 
 
203
  .gradio-chatbot {
204
  flex: 1 !important;
205
  height: auto !important;
@@ -264,16 +273,6 @@ with gr.Blocks(theme=theme, css="""
264
  <div class='title'>πŸŽ“ EduBot</div>
265
  """)
266
 
267
- # Flexible conversation viewing window
268
- with gr.Column(elem_classes=["chat-container"]):
269
- chatbot = gr.Chatbot(
270
- show_copy_button=True,
271
- avatar_images=["πŸ‘€", "πŸŽ“"],
272
- placeholder="Hi! I'm EduBot. What would you like to learn today? πŸ“š",
273
- container=True,
274
- elem_classes=["gradio-chatbot"]
275
- )
276
-
277
  # Textbox and send button
278
  with gr.Row(elem_classes=["input-row"]):
279
  msg = gr.Textbox(
 
193
  margin-bottom: 1rem;
194
  flex-shrink: 0;
195
  }
196
+ .button {
197
+ display: flex;
198
+ justify-content: center;
199
+ align-items: center;
200
+ height: 100px;
201
+ }
202
+
203
+ .textbox .chat-container {
204
  flex: 1;
205
  display: flex;
206
  flex-direction: column;
207
  min-height: 0;
208
  margin-bottom: 1rem;
209
  }
210
+
211
+ }
212
  .gradio-chatbot {
213
  flex: 1 !important;
214
  height: auto !important;
 
273
  <div class='title'>πŸŽ“ EduBot</div>
274
  """)
275
 
 
 
 
 
 
 
 
 
 
 
276
  # Textbox and send button
277
  with gr.Row(elem_classes=["input-row"]):
278
  msg = gr.Textbox(