Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -87,17 +87,15 @@ def get_query_from_internet(user_query, temperature=0):
87
 
88
  # Front end web application using Gradio
89
  CSS ="""
90
- .contain { display: flex; flex-direction: column; }
91
  footer.svelte-1ax1toq.svelte-1ax1toq.svelte-1ax1toq.svelte-1ax1toq { display: none; }
92
- #component-0 { height: 100%; }
93
- #chatbot { flex-grow: 1; overflow: auto;}
94
  #submit-button { background: #00A7E5; color: white; }
95
  #submit-button:hover { background: #00A7E5; color: white; box-shadow: 0 8px 10px 1px #9d9ea124, 0 3px 14px 2px #9d9ea11f, 0 5px 5px -3px #9d9ea133; }
96
  """
97
 
98
  with gr.Blocks(theme='samayg/StriimTheme', css=CSS) as demo:
99
  # image = gr.Image('striim-logo-light.png', height=68, width=200, show_label=False, show_download_button=False, show_share_button=False)
100
- chatbot = gr.Chatbot(show_label=False, height=300)
101
  msg = gr.Textbox(label="Question:")
102
  examples = gr.Examples(examples=[['What\'s new in Striim version 4.2.0?'], ['My Striim application keeps crashing. What should I do?'], ['How can I improve Striim performance?'], ['It says could not connect to source or target. What should I do?']], inputs=msg, label="Examples")
103
  submit = gr.Button("Submit", elem_id="submit-button")
 
87
 
88
  # Front end web application using Gradio
89
  CSS ="""
 
90
  footer.svelte-1ax1toq.svelte-1ax1toq.svelte-1ax1toq.svelte-1ax1toq { display: none; }
91
+ #chatbot { height: 70vh !important;}
 
92
  #submit-button { background: #00A7E5; color: white; }
93
  #submit-button:hover { background: #00A7E5; color: white; box-shadow: 0 8px 10px 1px #9d9ea124, 0 3px 14px 2px #9d9ea11f, 0 5px 5px -3px #9d9ea133; }
94
  """
95
 
96
  with gr.Blocks(theme='samayg/StriimTheme', css=CSS) as demo:
97
  # image = gr.Image('striim-logo-light.png', height=68, width=200, show_label=False, show_download_button=False, show_share_button=False)
98
+ chatbot = gr.Chatbot(show_label=False, elem_id="chatbot")
99
  msg = gr.Textbox(label="Question:")
100
  examples = gr.Examples(examples=[['What\'s new in Striim version 4.2.0?'], ['My Striim application keeps crashing. What should I do?'], ['How can I improve Striim performance?'], ['It says could not connect to source or target. What should I do?']], inputs=msg, label="Examples")
101
  submit = gr.Button("Submit", elem_id="submit-button")