gradio openai tiktoken pymupdf