Adam Fallon commited on
Commit
eacfa93
·
1 Parent(s): 6f732f7

versions make me cry

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +26 -18
  3. requirements.txt +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🏃
4
  colorFrom: purple
5
  colorTo: gray
6
  sdk: gradio
7
- sdk_version: 3.48.0
8
  app_file: app.py
9
  pinned: false
10
  python_version: 3.11.5
 
4
  colorFrom: purple
5
  colorTo: gray
6
  sdk: gradio
7
+ sdk_version: 3.36.1
8
  app_file: app.py
9
  pinned: false
10
  python_version: 3.11.5
app.py CHANGED
@@ -106,13 +106,14 @@ def ask_question(message):
106
  def setup_gradio():
107
  desc = "Welcome to Trainline Train Time Q&A! A silly little demo of how RAG can ground the answers from an LLM."
108
  long_desc = """
109
- Ask a question in the like 'How many trains per day from Rome to Madrid'.
110
 
111
  This info is scrapped from the table on train time pages. Example page here: https://www.thetrainline.com/train-times/manchester-to-london
112
 
113
  Not all train time pages have been scrapped so you don't get answers for every route, just the ones in the supported routes below and only answers for the supported questions.
114
 
115
- Supported questions are;
 
116
  - Price from X to Y
117
  - Last train from X to Y
118
  - First train from X to Y
@@ -123,22 +124,29 @@ def setup_gradio():
123
  - Number of Changes from X to Y
124
  - Journey time from X to Y
125
 
126
- Supported routes are;
127
- - "London to Edinburgh",
128
- - "Madrid to Barcelona",
129
- - "Rome to Madrid",
130
- - "Barcelona to Madrid",
131
- - "London to Madrid",
132
- - "London to Manchester",
133
- - "Leeds to London",
134
- - "London to Birmingham",
135
- - "London to Brighton",
136
- - "Glasgow to Manchester",
137
- - "Glasgow to Liverpool",
138
- - "Glasgow to Leeds",
139
- - "Birmingham to Glasgow",
140
- - "London to Newcastle",
141
- - "Seville to Madrid",
 
 
 
 
 
 
 
142
  """
143
 
144
  iface = gr.Interface(
 
106
  def setup_gradio():
107
  desc = "Welcome to Trainline Train Time Q&A! A silly little demo of how RAG can ground the answers from an LLM."
108
  long_desc = """
109
+ Ask a question in the like 'How many trains per day from Rome to Madrid'.
110
 
111
  This info is scrapped from the table on train time pages. Example page here: https://www.thetrainline.com/train-times/manchester-to-london
112
 
113
  Not all train time pages have been scrapped so you don't get answers for every route, just the ones in the supported routes below and only answers for the supported questions.
114
 
115
+ Supported questions
116
+ ---
117
  - Price from X to Y
118
  - Last train from X to Y
119
  - First train from X to Y
 
124
  - Number of Changes from X to Y
125
  - Journey time from X to Y
126
 
127
+ Supported routes
128
+ ---
129
+ - London to Edinburgh
130
+ - Madrid to Barcelona
131
+ - Rome to Madrid
132
+ - Barcelona to Madrid
133
+ - London to Madrid
134
+ - London to Manchester
135
+ - Leeds to London
136
+ - London to Birmingham
137
+ - London to Brighton
138
+ - Glasgow to Manchester
139
+ - Glasgow to Liverpool
140
+ - Glasgow to Leeds
141
+ - Birmingham to Glasgow
142
+ - London to Newcastle
143
+ - Seville to Madrid
144
+
145
+ Info
146
+ ---
147
+ - Model: meta-llama/Llama-2-13b-chat-hf
148
+ - Embedding Model: sentence-transformers/all-mpnet-base-v2
149
+
150
  """
151
 
152
  iface = gr.Interface(
requirements.txt CHANGED
@@ -28,7 +28,7 @@ flatbuffers==23.5.26
28
  fonttools==4.43.1
29
  frozenlist==1.4.0
30
  fsspec==2023.9.2
31
- gradio==3.48.0
32
  gradio_client==0.6.1
33
  grpcio==1.59.0
34
  h11==0.14.0
 
28
  fonttools==4.43.1
29
  frozenlist==1.4.0
30
  fsspec==2023.9.2
31
+ gradio==3.36.1
32
  gradio_client==0.6.1
33
  grpcio==1.59.0
34
  h11==0.14.0