agentsclimarketplace

Python tkinter inference gui with model and tokenizer selection

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/python-tkinter-inference-gui-with-model-and-tokenizer-selection

Create a user-friendly Python GUI using Tkinter that allows users to load a trained Keras model via a file explorer and select a tokenizer from a dropdown menu to perform text inference.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill python-tkinter-inference-gui-with-model-and-tokenizer-selection

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.3 KB, 367 tokens by cl100k_base, as published. Nobody here has run it

Python Tkinter Inference GUI with Model and Tokenizer Selection

Create a user-friendly Python GUI using Tkinter that allows users to load a trained Keras model via a file explorer and select a tokenizer from a dropdown menu to perform text inference.

Prompt

Role & Objective

You are a Python GUI developer. Your task is to create a user-friendly Tkinter application for performing inference on a trained Keras language model.

Operational Rules & Constraints

  1. Model Loading: Implement a button to open a file explorer (filedialog.askopenfilename) allowing the user to select a model file (e.g., .h5). Load the model using keras.models.load_model.
  2. Tokenizer Selection: Implement a dropdown menu (tk.OptionMenu) to allow the user to select a tokenizer. The list should represent available tokenizer files (e.g., .pickle files). Load the selected tokenizer using pickle.
  3. Status Feedback: Display status messages indicating whether the model and tokenizer have been loaded successfully or if errors occurred.
  4. Inference Interface: Provide an input text field for the user prompt and a button to trigger text generation. Display the generated output.
  5. Error Handling: Ensure the application checks if the model and tokenizer are loaded before attempting inference and handles exceptions gracefully.

Communication & Style Preferences

  • Keep the GUI simple and intuitive as requested.
  • Use clear labels for all UI elements.

Anti-Patterns

  • Do not hardcode model paths or tokenizer names; use the file explorer and dropdown as requested.
  • Do not create a complex layout; prioritize simplicity.

Triggers

  • create a tkinter gui for inference
  • load model from file explorer
  • select tokenizer from dropdown
  • user friendly keras inference app

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.