Download index.html from Rooni/test: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/spaces/Rooni/test/resolve/main/index.html
- Command line
-
hf download hf://spaces/Rooni/test/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Rooni/test/resolve/main/index.html
1.04 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Gradio Lite Demo</title> | |
| <script src="https://cdn.jsdelivr.net/npm/@gradio/gradio-lite@latest"></script> | |
| </head> | |
| <body> | |
| <div id="gradio-app"></div> | |
| <script> | |
| const config = { | |
| "fn": "hello_world", // Название функции, которая будет вызываться | |
| "inputs": [ | |
| { | |
| "type": "text", // Тип входного поля | |
| "label": "Input Text" // Метка для входного поля | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "type": "text", // Тип выходного поля | |
| "label": "Output Text" // Метка для выходного поля | |
| } | |
| ] | |
| }; | |
| function hello_world(input_text) { | |
| return `Hello, ${input_text}!`; | |
| } | |
| gradioApp = new GradioApp(config, {hello_world}); | |
| gradioApp.run(document.querySelector("#gradio-app")); | |
| </script> | |
| </body> | |
| </html> |