Larry Yin commited on
Commit
4762b53
·
1 Parent(s): 2dee946

Added bot_desc

Browse files
Files changed (2) hide show
  1. .gitignore +3 -0
  2. app.py +2 -0
.gitignore CHANGED
@@ -1,2 +1,5 @@
1
  .DS_Store
 
 
 
2
 
 
1
  .DS_Store
2
+ **/**.DS_Store
3
+ .ipynb_checkpoints
4
+ **/**.ipynb_checkpoints
5
 
app.py CHANGED
@@ -18,6 +18,7 @@ COLLECTION_NAME = os.environ['COLLECTION_NAME']
18
  memory_token_limit = os.environ['memory_token_limit']
19
  llm_name = os.environ['llm_name']
20
  bot_name = os.environ['bot_name']
 
21
 
22
  embedding = OpenAIEmbeddings()
23
 
@@ -57,6 +58,7 @@ qa = ConversationalRetrievalChain.from_llm(
57
 
58
  with gr.Blocks() as demo:
59
  gr.Markdown(f"# {bot_name}")
 
60
  chatbot = gr.Chatbot()
61
  msg = gr.Textbox(label="Type your message (Shift + Enter to submit)", lines=6)
62
  submit = gr.Button("Submit")
 
18
  memory_token_limit = os.environ['memory_token_limit']
19
  llm_name = os.environ['llm_name']
20
  bot_name = os.environ['bot_name']
21
+ bot_desc = os.environ['bot_desc']
22
 
23
  embedding = OpenAIEmbeddings()
24
 
 
58
 
59
  with gr.Blocks() as demo:
60
  gr.Markdown(f"# {bot_name}")
61
+ gr.Markdown(f"{bot_desc}")
62
  chatbot = gr.Chatbot()
63
  msg = gr.Textbox(label="Type your message (Shift + Enter to submit)", lines=6)
64
  submit = gr.Button("Submit")