Spaces:
Sleeping
Sleeping
File size: 435 Bytes
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(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) |