lorenzoscottb commited on
Commit
51bd210
β€’
1 Parent(s): 4eb245b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -76,6 +76,7 @@ interface_words = gr.Interface(
76
  title=title,
77
  description=description_main,
78
  examples=example_main,
 
79
  )
80
 
81
  interface_model_L = gr.Interface.load(
@@ -83,6 +84,7 @@ interface_model_L = gr.Interface.load(
83
  description=description_L,
84
  examples=examples,
85
  title="SA Large Multilingual",
 
86
  )
87
 
88
  interface_model_S = gr.Interface.load(
@@ -90,6 +92,7 @@ interface_model_S = gr.Interface.load(
90
  description=description_S,
91
  examples=examples[0],
92
  title="SA Base English-Only",
 
93
  )
94
 
95
  interface_model_G = gr.Interface.load(
@@ -97,15 +100,9 @@ interface_model_G = gr.Interface.load(
97
  description=description_G,
98
  examples=examples_g,
99
  title="SA Generation",
 
100
  )
101
 
102
- # interface_model_RE = gr.Interface.load(
103
- # name="models/DReAMy-lib/t5-base-DreamBank-Generation-Act-Char",
104
- # description=description_R,
105
- # examples=examples_re,
106
- # title="RE Generation",
107
- # )
108
-
109
  interface_model_RE = gr.Interface(
110
  text_to_graph,
111
  inputs=gr.Textbox(label="Text", placeholder="Enter a text here."),
@@ -129,5 +126,6 @@ interface_model_NER = gr.Interface.load(
129
 
130
  gr.TabbedInterface(
131
  [interface_words, interface_model_NER, interface_model_L, interface_model_S, interface_model_G, interface_model_RE],
132
- ["Main", "NER Generation", "SA Large Multilingual", "SA Base En", "SA En Generation", "RE Generation"]
 
133
  ).launch()
 
76
  title=title,
77
  description=description_main,
78
  examples=example_main,
79
+ cache_examples=True,
80
  )
81
 
82
  interface_model_L = gr.Interface.load(
 
84
  description=description_L,
85
  examples=examples,
86
  title="SA Large Multilingual",
87
+ cache_examples=True,
88
  )
89
 
90
  interface_model_S = gr.Interface.load(
 
92
  description=description_S,
93
  examples=examples[0],
94
  title="SA Base English-Only",
95
+ cache_examples=True,
96
  )
97
 
98
  interface_model_G = gr.Interface.load(
 
100
  description=description_G,
101
  examples=examples_g,
102
  title="SA Generation",
103
+ cache_examples=True,
104
  )
105
 
 
 
 
 
 
 
 
106
  interface_model_RE = gr.Interface(
107
  text_to_graph,
108
  inputs=gr.Textbox(label="Text", placeholder="Enter a text here."),
 
126
 
127
  gr.TabbedInterface(
128
  [interface_words, interface_model_NER, interface_model_L, interface_model_S, interface_model_G, interface_model_RE],
129
+ ["Main", "NER Generation", "SA Large Multilingual", "SA Base En", "SA En Generation", "RE Generation"],
130
+ cache_examples=True,
131
  ).launch()