Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
xray918
/
my_gradio
like
0
Runtime error
App
Files
Files
Community
0ad74ed
my_gradio
/
test
/
components
/
test_button.py
xray918
Upload folder using huggingface_hub
0ad74ed
verified
3 months ago
raw
Copy download link
history
blame
Safe
188 Bytes
import
gradio
as
gr
class
TestButton
:
def
test_postprocess
(
self
):
assert
gr.Button().postprocess(
"5"
) ==
"5"
assert
gr.Button().postprocess(
5
) ==
"5"
# type: ignore