Spaces:
Sleeping
Sleeping
Nathan Schneider
commited on
Commit
·
ab8be7a
1
Parent(s):
e4e6e6a
LazyObj for the other output components
Browse files
app.py
CHANGED
|
@@ -391,11 +391,11 @@ class LazyObj():
|
|
| 391 |
return self._o
|
| 392 |
|
| 393 |
simple_output = LazyObj(lambda: gr.HighlightedText(label="Tagged Text"))
|
| 394 |
-
output1 = lambda: gr.HTML(label="SNACS Tagged Sentence")
|
| 395 |
-
output2 = lambda: gr.HTML(label="SNACS Table with Colored Labels")
|
| 396 |
-
output3 = lambda: gr.HTML(label="SNACS Tagged Sentence with No Label Aggregation")
|
| 397 |
-
json_spans = lambda: gr.Code(language="json")
|
| 398 |
-
json_tokens = lambda: gr.Code(language="json")
|
| 399 |
|
| 400 |
#final rendering of the Gradio interface
|
| 401 |
with gr.Blocks(title="SNACS Tagging", css=CUSTOM_CSS) as demo:
|
|
|
|
| 391 |
return self._o
|
| 392 |
|
| 393 |
simple_output = LazyObj(lambda: gr.HighlightedText(label="Tagged Text"))
|
| 394 |
+
output1 = LazyObj(lambda: gr.HTML(label="SNACS Tagged Sentence"))
|
| 395 |
+
output2 = LazyObj(lambda: gr.HTML(label="SNACS Table with Colored Labels"))
|
| 396 |
+
output3 = LazyObj(lambda: gr.HTML(label="SNACS Tagged Sentence with No Label Aggregation"))
|
| 397 |
+
json_spans = LazyObj(lambda: gr.Code(language="json"))
|
| 398 |
+
json_tokens = LazyObj(lambda: gr.Code(language="json"))
|
| 399 |
|
| 400 |
#final rendering of the Gradio interface
|
| 401 |
with gr.Blocks(title="SNACS Tagging", css=CUSTOM_CSS) as demo:
|