Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -141,19 +141,6 @@ interface_model_RE = gr.Interface(
|
|
| 141 |
|
| 142 |
#############################
|
| 143 |
|
| 144 |
-
pipe = pipeline(
|
| 145 |
-
"text2text-generation",
|
| 146 |
-
model=model_id,
|
| 147 |
-
max_length=300,
|
| 148 |
-
min_length=5,
|
| 149 |
-
)
|
| 150 |
-
|
| 151 |
-
# generate text graph
|
| 152 |
-
graph_text = pipe(text)
|
| 153 |
-
|
| 154 |
-
graph_text = graph_text[0]["generated_text"]
|
| 155 |
-
|
| 156 |
-
|
| 157 |
pipe_N = pipeline(
|
| 158 |
"text2text-generation",
|
| 159 |
model="DReAMy-lib/t5-base-DreamBank-Generation-NER-Char",
|
|
@@ -170,7 +157,7 @@ interface_model_N = gr.Interface(
|
|
| 170 |
outputs='text',
|
| 171 |
title="NER",
|
| 172 |
description=description_GNER,
|
| 173 |
-
examples=
|
| 174 |
cache_examples=True,
|
| 175 |
)
|
| 176 |
|
|
|
|
| 141 |
|
| 142 |
#############################
|
| 143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
pipe_N = pipeline(
|
| 145 |
"text2text-generation",
|
| 146 |
model="DReAMy-lib/t5-base-DreamBank-Generation-NER-Char",
|
|
|
|
| 157 |
outputs='text',
|
| 158 |
title="NER",
|
| 159 |
description=description_GNER,
|
| 160 |
+
examples=["I was followed by the blue monster but was not scared. I was calm and relaxed."],
|
| 161 |
cache_examples=True,
|
| 162 |
)
|
| 163 |
|