lorenzoscottb commited on
Commit
11ffc5d
Β·
verified Β·
1 Parent(s): 874e492

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -78,23 +78,21 @@ interface_words = gr.Interface(
78
  examples=example_main,
79
  )
80
 
81
- interface_model_L = gr.Interface(
82
- description=description_L,
83
  examples=examples,
84
  title="SA Large Multilingual",
85
  )
86
- interface_model_L.load("models/DReAMy-lib/xlm-roberta-large-DreamBank-emotion-presence",)
87
 
88
  interface_model_S = gr.Interface.load(
89
  "models/DReAMy-lib/bert-base-cased-DreamBank-emotion-presence",
90
- description=description_S,
91
  examples=examples[0],
92
  title="SA Base English-Only",
93
  )
94
 
95
  interface_model_G = gr.Interface.load(
96
  "models/DReAMy-lib/t5-base-DreamBank-Generation-Emot-Char",
97
- description=description_G,
98
  examples=examples_g,
99
  title="SA Generation",
100
  )
@@ -115,7 +113,6 @@ interface_model_G = gr.Interface.load(
115
 
116
  interface_model_NER = gr.Interface.load(
117
  "models/DReAMy-lib/t5-base-DreamBank-Generation-NER-Char",
118
- description=description_GNER,
119
  examples=examples_g,
120
  title="NER Generation",
121
  )
 
78
  examples=example_main,
79
  )
80
 
81
+ interface_model_L = gr.Interface.load(
82
+ "models/DReAMy-lib/xlm-roberta-large-DreamBank-emotion-presence",
83
  examples=examples,
84
  title="SA Large Multilingual",
85
  )
86
+ interface_model_L 0 gr.Inload()
87
 
88
  interface_model_S = gr.Interface.load(
89
  "models/DReAMy-lib/bert-base-cased-DreamBank-emotion-presence",
 
90
  examples=examples[0],
91
  title="SA Base English-Only",
92
  )
93
 
94
  interface_model_G = gr.Interface.load(
95
  "models/DReAMy-lib/t5-base-DreamBank-Generation-Emot-Char",
 
96
  examples=examples_g,
97
  title="SA Generation",
98
  )
 
113
 
114
  interface_model_NER = gr.Interface.load(
115
  "models/DReAMy-lib/t5-base-DreamBank-Generation-NER-Char",
 
116
  examples=examples_g,
117
  title="NER Generation",
118
  )