fork_a_repo / app.py
osanseviero's picture
Update app.py
28323ea
raw
history blame
435 Bytes
import gradio as gr
def fork(source_repo, token, type):
return token
interface = gr.Interface(
fn=fork,
inputs=[
gr.inputs.Textbox(self, placeholder="Source repository"),
gr.inputs.Textbox(self, placeholder="Write access token"),
gr.inputs.Dropdown(self, choices=["model", "dataset", "space"])
],
outputs=["textbox"],
allow_flagging=False,
live=False,
)
interface.launch(enable_queue=True)