Antoine Louis commited on
Commit
ab25892
1 Parent(s): 2bb3613

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -38
app.py CHANGED
@@ -20,44 +20,7 @@ def search(question):
20
  title = "Belgian Legislation Search"
21
  description = "A biencoder model was trained to retrieve relevant statutory articles to legal issues. Ask it a question in French!"
22
  article = """
23
- The model will return the most semantically relevant laws from a corpus of 22,633 statutory articles collected from 32 Belgian codes:
24
-
25
- | Authority | Code | #Articles |
26
- |-----------|-----------------------------------------------------|-----------|
27
- | Federal | Judicial Code | 2285 |
28
- | | Code of Economic Law | 2032 |
29
- | | Civil Code | 1961 |
30
- | | Code of Workplace Welfare | 1287 |
31
- | | Code of Companies and Associations | 1194 |
32
- | | Code of Local Democracy and Decentralization | 1159 |
33
- | | Navigation Code | 977 |
34
- | | Code of Criminal Instruction | 719 |
35
- | | Penal Code | 689 |
36
- | | Social Penal Code | 307 |
37
- | | Forestry Code | 261 |
38
- | | Railway Code | 260 |
39
- | | Electoral Code | 218 |
40
- | | The Constitution | 208 |
41
- | | Code of Various Rights and Taxes | 191 |
42
- | | Code of Private International Law | 135 |
43
- | | Consular Code | 100 |
44
- | | Rural Code | 87 |
45
- | | Military Penal Code | 66 |
46
- | | Code of Belgian Nationality | 31 |
47
- | Regional | Walloon Code of Social Action and Health | 3650 |
48
- | | Walloon Code of the Environment | 1270 |
49
- | | Walloon Code of Territorial Development | 796 |
50
- | | Walloon Public Service Code | 597 |
51
- | | Walloon Code of Agriculture | 461 |
52
- | | Brussels Spatial Planning Code | 401 |
53
- | | Walloon Code of Basic and Secondary Education | 310 |
54
- | | Walloon Code of Sustainable Housing | 286 |
55
- | | Brussels Housing Code | 279 |
56
- | | Brussels Code of Air, Climate and Energy Management | 208 |
57
- | | Walloon Animal Welfare Code | 108 |
58
- | | Brussels Municipal Electoral Code | 100 |
59
- | Total | | 22633 |
60
-
61
  """
62
  examples = [
63
  "Qu'est-ce que je risque si je viole le secret professionnel ?",
20
  title = "Belgian Legislation Search"
21
  description = "A biencoder model was trained to retrieve relevant statutory articles to legal issues. Ask it a question in French!"
22
  article = """
23
+ The model will return the most semantically relevant laws from a corpus of 22,633 statutory articles collected from 32 Belgian codes.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  """
25
  examples = [
26
  "Qu'est-ce que je risque si je viole le secret professionnel ?",