Views
No views yet
distilgpt2) using the Transformers pipeline.app.py — Gradio interface with a text box and a max_new_tokens slider.requirements.txt — Minimal dependencies for the Space.runtime.txt — (Optional) Pin the Python version used by Spaces.1pip install -r requirements.txt
2python app.pygit push them if you prefer git).distilgpt2 for a small CPU-friendly footprint. You can swap in another causal LM if desired.do_sample=True is enabled; adjust temperature, top_p, etc., in app.py if you want finer control.