darienacosta commited on
Commit
82e29e9
1 Parent(s): 08f771a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -586,7 +586,7 @@ class ChatWrapper:
586
  docs = docsearch.similarity_search(inp)
587
  output = str(qa_chain.run(input_documents=docs, question=inp))
588
  else:
589
- output, hidden_text = "Please supply some text in the the Embeddings tab.", None
590
  else:
591
  output, hidden_text = "What's on your mind?", None
592
  else:
@@ -805,8 +805,7 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
805
  with gr.Row():
806
  with gr.Column():
807
  gr.HTML(
808
- """<b><center>GPT + WolframAlpha + Whisper</center></b>
809
- <p><center>Hit Enter after pasting your OpenAI API key.</center></p>""")
810
 
811
  openai_api_key_textbox = gr.Textbox(placeholder="Paste your OpenAI API key (sk-...) and hit Enter",
812
  show_label=False, lines=1, type='password')
@@ -847,8 +846,8 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
847
  outputs=[docsearch_state])
848
 
849
  with gr.Row():
850
- message = gr.Textbox(label="What's on your mind??",
851
- placeholder="What's the answer to life, the universe, and everything?",
852
  lines=1)
853
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
854
 
 
586
  docs = docsearch.similarity_search(inp)
587
  output = str(qa_chain.run(input_documents=docs, question=inp))
588
  else:
589
+ output, hidden_text = "Please press the 'Activate Embeddings' button in order to load Coverwhale Agent Resource Center knowledge into ChatGPT.", None
590
  else:
591
  output, hidden_text = "What's on your mind?", None
592
  else:
 
805
  with gr.Row():
806
  with gr.Column():
807
  gr.HTML(
808
+ """<b><center>Cover Whale Agent Resource Center ChatGPT Demo</center></b>""")
 
809
 
810
  openai_api_key_textbox = gr.Textbox(placeholder="Paste your OpenAI API key (sk-...) and hit Enter",
811
  show_label=False, lines=1, type='password')
 
846
  outputs=[docsearch_state])
847
 
848
  with gr.Row():
849
+ message = gr.Textbox(label="Ask a question about Cover Whale",
850
+ placeholder="How do I process an endorsement on the Cover Whale Platform?",
851
  lines=1)
852
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
853