Spaces:
Sleeping
Sleeping
Nathan Schneider
commited on
Commit
·
5cd35ce
1
Parent(s):
966702f
disable caching for now
Browse files
app.py
CHANGED
|
@@ -403,7 +403,8 @@ with gr.Blocks(title="SNACS Tagging", css=CUSTOM_CSS) as demo:
|
|
| 403 |
input_text = gr.Textbox(lines=4, placeholder="Enter a sentence...", label="Input Text"),
|
| 404 |
tag_btn = gr.Button("Tag!", variant="primary")
|
| 405 |
examples = gr.Examples(EXAMPLES, input_text, [simple_output,json_spans,json_tokens,output1,output2,output3], # type: ignore
|
| 406 |
-
fn=classify_tokens, cache_examples=
|
|
|
|
| 407 |
with gr.Column() as output:
|
| 408 |
with gr.Tab("Simple Output"):
|
| 409 |
simple_output.render()
|
|
|
|
| 403 |
input_text = gr.Textbox(lines=4, placeholder="Enter a sentence...", label="Input Text"),
|
| 404 |
tag_btn = gr.Button("Tag!", variant="primary")
|
| 405 |
examples = gr.Examples(EXAMPLES, input_text, [simple_output,json_spans,json_tokens,output1,output2,output3], # type: ignore
|
| 406 |
+
fn=classify_tokens, cache_examples=False, cache_mode="lazy", example_labels=EXAMPLE_LABELS)
|
| 407 |
+
# ^ turned off caching because JSON data is too large for paragraph examples
|
| 408 |
with gr.Column() as output:
|
| 409 |
with gr.Tab("Simple Output"):
|
| 410 |
simple_output.render()
|