NiceGUI notes
NiceGUI is freaking awesome.
-
Resources
- nicegui/examples at main · zauberzeug/nicegui the most useful examples I’ve seen in any python project ever.
-
Useful examples
- search_as_you_type for updating a table based on
Misc
- ui.list | NiceGUI hows very pretty complex lists with sections!
- ui.icon | NiceGUI works for icons: Material Symbols & Icons - Google Fonts
- Tooltips can contain all other elements! ui.tooltip | NiceGUI
Snippets
Uploading files
ui.upload(
auto_upload=True, on_upload=lambda e: handle_upload(e)
).classes("max-w-full")
async def handle_upload(e: events.UploadEventArguments):
with tempfile.NamedTemporaryFile(delete=False, prefix="uns") as tmp:
save_path = Path(tmp.name)
await e.file.save(save_path)
return save_path
(Preserving l/r width)
(h6_en is lm-eval)
and adding blocks — much less chaotic than 3d slicer (at first glance)
(EDIT: oh damn it’s 7, not 6!)
from the paper
+
- … leading to a probability not of 1/4(..10) but 1/2
- one way to filter out such bad examples is to get a LM to solve the task without providing context, or even better - look at the distribution of probabilities over the answers and see if some are MUCH more likely than the others
- Issue with 2-3-4 plurals: I can just create three classes of nouns, singular, 2-3-4, and >=5
- don’t forget to discuss the morphology complexities in the masterarbeit
- Conveying the issues in English is hard, but I can (for a given UA example)
- provide the morphology info for the English words
- provide a third German translation
G
(<
(same paper)
(pic from <
j
{:height=“500px”}
{:height=“500px”}.
{:width=“50%”}.
{:height=“500px”}.
{:height=“500px”}.
{:height=“500px”}.
{:height=“500px”}
{:height=“500px”}.
{:height=“500px”}.
{:height=“300px”}.
{:height=“300px”}.
{:height=“300px”}.