Spaces:
Runtime error
Runtime error
Download testing/test.py from CaffeineCrew/Techdocs: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/spaces/CaffeineCrew/Techdocs/resolve/f1a99d2c6d20bb40322498bb330c60e2a2d8205b/testing/test.py
- Command line
-
hf download hf://spaces/CaffeineCrew/Techdocs@f1a99d2c6d20bb40322498bb330c60e2a2d8205b/testing/test.py
-
curl -L -o test.py https://huggingface.co/spaces/CaffeineCrew/Techdocs/resolve/f1a99d2c6d20bb40322498bb330c60e2a2d8205b/testing/test.py
326 Bytes
| def add(a, b): | |
| return a + b | |
| def multiply(a, b): | |
| return a * b | |
| def subtract(a, b): | |
| return a - b | |
| def divide(a, b): | |
| if b == 0: | |
| raise ValueError('Cannot divide by zero') | |
| return a / b | |
| def func(*args, **kwargs): | |
| def wrapper(*args, **kwargs): | |
| return func(*args, **kwargs) | |
| return wrapper |