Skip to content

Commit

Permalink
fix chat height
Browse files Browse the repository at this point in the history
  • Loading branch information
deep-diver committed Jul 14, 2023
1 parent 0d2817a commit 0c5528e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion chats/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@ def text_stream(ppmanager, streamer):
yield ppmanager, ppmanager.build_uis()

def internet_search(ppmanager, serper_api_key, global_context, ctx_num_lconv, device="cpu"):
instruction = "Based on the provided texts below, please answer to '{ping}' in your own words. Try to explain in detail as much as possible."

searcher = SimilaritySearcher.from_pretrained(device=device)
iss = InternetSearchStrategy(searcher, serper_api_key=serper_api_key)(ppmanager)
iss = InternetSearchStrategy(
searcher,
instruction=instruction,
serper_api_key=serper_api_key
)(ppmanager)

step_ppm = None
while True:
Expand Down
4 changes: 2 additions & 2 deletions miscs/styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@
border-radius: 20px;
}
#chatbot {
height: 800px;
height: 800px !important;
overflow: auto;
box-shadow: none !important;
border: none !important;
}
#chatbot > .wrap {
max-height: 780px;
max-height: 780px !important;
}
#chatbot + div {
border-radius: 35px !important;
Expand Down

0 comments on commit 0c5528e

Please sign in to comment.