Spaces:
Sleeping
Sleeping
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) |