Spaces:
Runtime error
Runtime error
Update app.py
Browse filesFinished description and changed examples
app.py
CHANGED
@@ -22,7 +22,8 @@ This engine uses information from the Bogazici University Website to answer ques
|
|
22 |
- General Uni Information, like Busses from Uni, Taxi-Numbers
|
23 |
- Schedule Information for all courses
|
24 |
|
25 |
-
It returns the top
|
|
|
26 |
'''
|
27 |
|
28 |
|
@@ -31,15 +32,15 @@ article = '''
|
|
31 |
|
32 |
This App uses an "MPNet" sentence-transformer to encode information from the website into an embedding space.
|
33 |
When faced with a query, the semantically most similar document is retrieved.
|
34 |
-
A language model ("
|
35 |
'''
|
36 |
|
37 |
-
|
38 |
-
examples = [
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
]
|
43 |
|
44 |
label = gr.outputs.Label(num_top_classes=3)
|
45 |
|
|
|
22 |
- General Uni Information, like Busses from Uni, Taxi-Numbers
|
23 |
- Schedule Information for all courses
|
24 |
|
25 |
+
It returns the top 3 results and assigns each of them a confidence score which makes it easier to estimate if a given answer can be relied upon.
|
26 |
+
You can click on one of the examples below to get started. Have fun!
|
27 |
'''
|
28 |
|
29 |
|
|
|
32 |
|
33 |
This App uses an "MPNet" sentence-transformer to encode information from the website into an embedding space.
|
34 |
When faced with a query, the semantically most similar document is retrieved.
|
35 |
+
A text and a table language model ("Deberta-large" and "Tapas" here) extract the answers to the original question from the respective document and return them to the interface
|
36 |
'''
|
37 |
|
38 |
+
exmples = ["When is the add/dropp period?", "What does it mean if instructor consent is required?", "Where is the english preparatory unit located?"]
|
39 |
+
# examples = [
|
40 |
+
# ["When is the add/dropp period?"],
|
41 |
+
# ["What does it mean if instructor consent is required?"],
|
42 |
+
# ["Where is the english preparatory unit located?"],
|
43 |
+
# ]
|
44 |
|
45 |
label = gr.outputs.Label(num_top_classes=3)
|
46 |
|