File size: 417 Bytes
773d305
 
 
 
 
 
 
 
8a8b6d8
 
 
773d305
28323ea
773d305
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio as gr

def fork(source_repo, token, type):
  return token

interface = gr.Interface(
    fn=fork,
    inputs=[
      gr.inputs.Textbox(placeholder="Source repository"),
      gr.inputs.Textbox(placeholder="Write access token"),
      gr.inputs.Dropdown(choices=["model", "dataset", "space"])
    ],
    outputs=["textbox"],
    allow_flagging=False,
    live=False,
)
interface.launch(enable_queue=True)