my_gradio / test /components /test_download_button.py
xray918's picture
Upload folder using huggingface_hub
0ad74ed verified
raw
history blame
185 Bytes
import gradio as gr
def test_download_button_sets_origname():
value = gr.DownloadButton().postprocess("/home/image.png")
assert value.orig_name == "image.png" # type: ignore