Spaces:
Sleeping
Sleeping
Download test_api_positional.py from Bhaskr/Age-Synthesis: direct link, hf CLI and curl.
- Browser
- Download file 627 Bytes
-
https://huggingface.co/spaces/Bhaskr/Age-Synthesis/resolve/main/test_api_positional.py
- Command line
-
hf download hf://spaces/Bhaskr/Age-Synthesis/test_api_positional.py
-
curl -L -o test_api_positional.py https://huggingface.co/spaces/Bhaskr/Age-Synthesis/resolve/main/test_api_positional.py
627 Bytes
| from gradio_client import Client, handle_file | |
| import os | |
| def test_final_call(): | |
| print("Testing Robys01/Face-Aging with POSITIONAL arguments...") | |
| try: | |
| client = Client("Robys01/Face-Aging") | |
| # Use a dummy path or a real one if available. | |
| # For testing connection/params, we can just use a local image if we had one. | |
| # Let's try to just check the return type if possible, or just prepare the fix. | |
| print("API is alive. Positional args: [handle_file, source_age, target_age]") | |
| except Exception as e: | |
| print(f"Failed: {e}") | |
| if __name__ == "__main__": | |
| test_final_call() | |