JOELDSL commited on
Commit
8fc3414
·
1 Parent(s): db74b87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -12,6 +12,8 @@ qaExamples = [["Mein Name ist Wolfgang und ich lebe in Berlin", "Wo wohne ich?"]
12
  sumExamples = [
13
  "Paris is the capital and most populous city of France, with an estimated population of 2,175,601 residents as of 2018, in an area of more than 105 square kilometres (41 square miles). The City of Paris is the centre and seat of government of the region and province of Île-de-France, or Paris Region, which has an estimated population of 12,174,880, or about 18 percent of the population of France as of 2017."]
14
 
 
 
15
  qaInterface = gr.Interface.load("huggingface/deepset/gelectra-large-germanquad",
16
  title=None,
17
  description=qa_text,
@@ -28,10 +30,10 @@ simplicationInterface = gr.Interface.load(
28
  "huggingface/haining/scientific_abstract_simplification", title=None, description=simplifaction_text)
29
 
30
  robertaGer = gr.Interface.load(
31
- "huggingface/joelito/legal-german-roberta-large", title=None, description=legal_text)
32
 
33
  roberta = gr.Interface.load(
34
- "huggingface/xlm-roberta-large", title=None, description=legal_text)
35
 
36
  legalInterface = gr.TabbedInterface([robertaGer, roberta], ["Roberta German", "Roberta"])
37
 
 
12
  sumExamples = [
13
  "Paris is the capital and most populous city of France, with an estimated population of 2,175,601 residents as of 2018, in an area of more than 105 square kilometres (41 square miles). The City of Paris is the centre and seat of government of the region and province of Île-de-France, or Paris Region, which has an estimated population of 12,174,880, or about 18 percent of the population of France as of 2017."]
14
 
15
+ legalExample = ["Die Beschwerdeführerin rügt sodann eine Verletzung des Verhältnismässigkeitsprinzips. Sie ist der Auffassung, dass die Publikationstätigkeit der WEKO den Grundsatz der <mask> gemäss Art. 5 Abs. 2 und Art. 36 BV wahren müsse."]
16
+
17
  qaInterface = gr.Interface.load("huggingface/deepset/gelectra-large-germanquad",
18
  title=None,
19
  description=qa_text,
 
30
  "huggingface/haining/scientific_abstract_simplification", title=None, description=simplifaction_text)
31
 
32
  robertaGer = gr.Interface.load(
33
+ "huggingface/joelito/legal-german-roberta-large", title=None, description=legal_text, examples=legalExample)
34
 
35
  roberta = gr.Interface.load(
36
+ "huggingface/xlm-roberta-large", title=None, description=legal_text, examples=legalExample)
37
 
38
  legalInterface = gr.TabbedInterface([robertaGer, roberta], ["Roberta German", "Roberta"])
39