Commit ·
17ecb7e
1
Parent(s): 4e8239b
still trying to fix the cache/display problem
Browse files
README.md
CHANGED
|
@@ -23,7 +23,7 @@ Provided a Romansh text, the lemmatizer splits it into words and looks up each w
|
|
| 23 |
|
| 24 |
For example, if a Romansh text contains the word _lavuraiva_, the lemmatizer traces the word back to the Vallader and Puter dictionaries:
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
Typical use cases for the lemmatizer include:
|
| 29 |
|
|
|
|
| 23 |
|
| 24 |
For example, if a Romansh text contains the word _lavuraiva_, the lemmatizer traces the word back to the Vallader and Puter dictionaries:
|
| 25 |
|
| 26 |
+
<img src="illustration.png" alt="illustration" width="400"/>
|
| 27 |
|
| 28 |
Typical use cases for the lemmatizer include:
|
| 29 |
|
app.py
CHANGED
|
@@ -315,7 +315,7 @@ with gr.Blocks(
|
|
| 315 |
fn=process_text,
|
| 316 |
outputs=[idiom_chart, token_table],
|
| 317 |
run_on_click=True,
|
| 318 |
-
cache_examples=
|
| 319 |
cache_mode='eager',
|
| 320 |
preload=0,
|
| 321 |
)
|
|
@@ -323,6 +323,5 @@ with gr.Blocks(
|
|
| 323 |
|
| 324 |
if __name__ == "__main__":
|
| 325 |
demo.launch(
|
| 326 |
-
allowed_paths=[os.getcwd()],
|
| 327 |
#ssr_mode=False
|
| 328 |
-
)
|
|
|
|
| 315 |
fn=process_text,
|
| 316 |
outputs=[idiom_chart, token_table],
|
| 317 |
run_on_click=True,
|
| 318 |
+
cache_examples=True,
|
| 319 |
cache_mode='eager',
|
| 320 |
preload=0,
|
| 321 |
)
|
|
|
|
| 323 |
|
| 324 |
if __name__ == "__main__":
|
| 325 |
demo.launch(
|
|
|
|
| 326 |
#ssr_mode=False
|
| 327 |
+
)
|