ddiddu commited on
Commit
0c52c79
·
verified ·
1 Parent(s): ee487bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -37,6 +37,14 @@ examples = [
37
  "How can I reach out to Jisu?",
38
  ]
39
 
 
 
 
 
 
 
 
 
40
  with gr.Blocks(theme='gradio/soft', fill_height=True) as demo:
41
  gr.Markdown(
42
  """
@@ -57,7 +65,7 @@ with gr.Blocks(theme='gradio/soft', fill_height=True) as demo:
57
 
58
  I am currently under development. If there are errors or improvements, feel free to share with Jisu! You don't know how to reach out to Jisu? **Ask me!**
59
  """)
60
- gr.ChatInterface(predict, examples=examples)
61
 
62
  if __name__ == "__main__":
63
  demo.launch(share=True)
 
37
  "How can I reach out to Jisu?",
38
  ]
39
 
40
+ css = """
41
+ #chatbot {
42
+ flex-grow: 1 !important;
43
+ overflow: auto !important;
44
+ }
45
+ #col { height: calc(100vh - 112px - 16px) !important; }
46
+ """
47
+
48
  with gr.Blocks(theme='gradio/soft', fill_height=True) as demo:
49
  gr.Markdown(
50
  """
 
65
 
66
  I am currently under development. If there are errors or improvements, feel free to share with Jisu! You don't know how to reach out to Jisu? **Ask me!**
67
  """)
68
+ gr.ChatInterface(fn=predict, chatbot=gr.Chatbot(elem_id="chatbot", render=False), examples=examples)
69
 
70
  if __name__ == "__main__":
71
  demo.launch(share=True)