Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /gradio-app_gradio /demo /blocks_gpt /run.py
| import gradio as gr | |
| api = gr.load("huggingface/gpt2-xl") | |
| def complete_with_gpt(text): | |
| # Use the last 50 characters of the text as context | |
| return text[:-50] + api(text[-50:]) | |
| with gr.Blocks() as demo: | |
| textbox = gr.Textbox(placeholder="Type here and press enter...", lines=4) | |
| btn = gr.Button("Generate") | |
| btn.click(complete_with_gpt, textbox, textbox) | |
| if __name__ == "__main__": | |
| demo.launch() | |
Xet Storage Details
- Size:
- 419 Bytes
- Xet hash:
- 1758aa813257630467892c19ee3d934950721bee650d3d944403d8eb7fb1d257
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.