danielcwq commited on
Commit
3cae193
1 Parent(s): 8d8d348

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -6,7 +6,7 @@ import pickle
6
  from query_data import get_chain
7
  from threading import Lock
8
 
9
- with open("vectorstore.pkl", "rb") as f:
10
  vectorstore = pickle.load(f)
11
 
12
 
@@ -53,7 +53,7 @@ block = gr.Blocks(css=".gradio-container {background-color: lightgray}")
53
 
54
  with block:
55
  with gr.Row():
56
- gr.Markdown("<h3><center>Chat-Your-Data (H2 Economics)</center></h3>")
57
 
58
  openai_api_key_textbox = gr.Textbox(
59
  placeholder="Paste your OpenAI API key (sk-...)",
@@ -67,21 +67,21 @@ with block:
67
  with gr.Row():
68
  message = gr.Textbox(
69
  label="What's your question?",
70
- placeholder="Ask questions about anything covered in the H2 Economics syllabus",
71
  lines=1,
72
  )
73
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
74
 
75
  gr.Examples(
76
  examples=[
77
- "Explain real wealth effect.",
78
- "Use the real wealth effect to explain the negative gradient of the AD curve.",
79
- "Explain the multiplier process.",
80
  ],
81
  inputs=message,
82
  )
83
 
84
- gr.HTML("Demo application of a LangChain chain, built on H2 Economics Data. Many thanks to Jean Chua for giving her notes for this project.")
85
 
86
  gr.HTML(
87
  "<center>Powered by <a href='https://github.com/hwchase17/langchain'>LangChain 🦜️🔗</a></center>"
 
6
  from query_data import get_chain
7
  from threading import Lock
8
 
9
+ with open("medvectorstore.pkl", "rb") as f:
10
  vectorstore = pickle.load(f)
11
 
12
 
 
53
 
54
  with block:
55
  with gr.Row():
56
+ gr.Markdown("<h3><center>Chat-Your-Data (OrthoMed)</center></h3>")
57
 
58
  openai_api_key_textbox = gr.Textbox(
59
  placeholder="Paste your OpenAI API key (sk-...)",
 
67
  with gr.Row():
68
  message = gr.Textbox(
69
  label="What's your question?",
70
+ placeholder="Ask questions about anything covered in the orthopaedics syllabus.",
71
  lines=1,
72
  )
73
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
74
 
75
  gr.Examples(
76
  examples=[
77
+ "How is neuropathic pain different from nociceptive pain?",
78
+ "How does Tramadol work?",
79
+ "What is the Kirkaldy Wallis Degenerative cascade?",
80
  ],
81
  inputs=message,
82
  )
83
 
84
+ gr.HTML("Demo application of a LangChain chain, built on orthopaedics data. Many thanks to Mok for giving his notes for this project.")
85
 
86
  gr.HTML(
87
  "<center>Powered by <a href='https://github.com/hwchase17/langchain'>LangChain 🦜️🔗</a></center>"