fork_a_repo / app.py
osanseviero's picture
Update app.py
8a8b6d8
raw
history blame
417 Bytes
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)