joefarrington commited on
Commit
fab5646
·
1 Parent(s): c6c395b

Temporarily remove examples

Browse files
Files changed (1) hide show
  1. app.py +0 -14
app.py CHANGED
@@ -20,19 +20,6 @@ Please refer to the official [UCL module catalogue](https://www.ucl.ac.uk/module
20
  for accurate and up-to-date information.
21
  """
22
 
23
- examples = [
24
- {"role": "user", "content": "When can I take a module on medical statistics?"},
25
- {
26
- "role": "user",
27
- "content": "What are the prerequisites for taking Supervised Learning?",
28
- },
29
- {
30
- "role": "user",
31
- "content": "What is the difference between the two modules on Trauma for \
32
- paediatric dentistry?",
33
- },
34
- ]
35
-
36
 
37
  def convert_history(history: list[dict]) -> list[BaseMessage]:
38
  """Convert conversation history into Langchain messages"""
@@ -70,7 +57,6 @@ def main(cfg: omegaconf.DictConfig) -> None:
70
  gr.ChatInterface(
71
  fn=chat,
72
  type="messages",
73
- examples=examples,
74
  )
75
 
76
  module_chat.launch()
 
20
  for accurate and up-to-date information.
21
  """
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  def convert_history(history: list[dict]) -> list[BaseMessage]:
25
  """Convert conversation history into Langchain messages"""
 
57
  gr.ChatInterface(
58
  fn=chat,
59
  type="messages",
 
60
  )
61
 
62
  module_chat.launch()