File size: 1,020 Bytes
0fc235e
 
 
 
 
 
 
d3ddb57
0fc235e
 
 
d3ddb57
0fc235e
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python
from pathlib import Path

import gradio as gr
from gradio_space_ci import configure_space_ci

with gr.Blocks() as demo:
    gr.Markdown(Path("README.md").read_text().split("---")[-1])

if __name__ == "__main__":
    configure_space_ci(
        blocks=demo,  # ANY gradio app
        trusted_authors=["clefourrier"],  # space owners + manually trusted authors
        private="auto",  # ephemeral spaces will have same visibility as the main space. Otherwise, set to `True` or `False` explicitly.
        variables="auto",  # same variables as the main space. Otherwise, set to a `Dict[str, str]`.
        secrets=["HF_TOKEN"],  # which secret do I want to copy from the main space? Can be a `List[str]`.
        hardware=None,  # "cpu-basic" by default. Otherwise set to "auto" to have same hardware as the main space or any valid string value.
        storage=None,  # no storage by default. Otherwise set to "auto" to have same storage as the main space or any valid string value.
    ).launch()