File size: 305 Bytes
04a30fc
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr
from huggingface_hub import HfApi
from substra_launcher import launch_substra_space

api = HfApi()

gr.Interface(
    fn=lambda *args, **kwargs: launch_substra_space(api, *args, **kwargs),
    inputs="text",
    outputs="text",
    examples=[["NimaBoscarino/substra-test"]]
).launch()