brunhild217 commited on
Commit
0be388c
·
1 Parent(s): a7ca5b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -41,7 +41,19 @@ def get_tutor_reply(user_message, chat_tutor):
41
  def get_conversation_history(chat_tutor):
42
  return chat_tutor.conversation_memory, chat_tutor
43
 
44
- with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
 
 
45
  #initialize tutor (with state)
46
  study_tutor = gr.State(EchoingTutor())
47
 
 
41
  def get_conversation_history(chat_tutor):
42
  return chat_tutor.conversation_memory, chat_tutor
43
 
44
+
45
+ css="""
46
+ #sources-container {
47
+ overflow: scroll !important; /* Needs to override default formatting */
48
+ /*max-height: 20em; */ /* Arbitrary value */
49
+ }
50
+ #sources-container > div { padding-bottom: 1em !important; /* Arbitrary value */ }
51
+ .short-height > * > * { min-height: 0 !important; }
52
+ .translucent { opacity: 0.5; }
53
+ .textbox_label { padding-bottom: .5em; }
54
+ """
55
+
56
+ with gr.Blocks(css=css) as demo:
57
  #initialize tutor (with state)
58
  study_tutor = gr.State(EchoingTutor())
59