from huggingface_hub import HfFileSystem import gradio as gr fs = HfFileSystem() with fs.open('datasets/o-862-268-o/licentia/datum__licentia','rb') as f: data = f.read() gr.Text(data)