osanseviero commited on
Commit
773d305
1 Parent(s): efc52ad

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def fork(source_repo, token, type):
4
+ return token
5
+
6
+ interface = gr.Interface(
7
+ fn=fork,
8
+ inputs=[
9
+ gr.inputs.Textbox(self, placeholder="Source repository"),
10
+ gr.inputs.Textbox(self, placeholder="Write access token"),
11
+ gr.inputs.Dropdown(self, choices=["model", "dataset", "space"])
12
+ ],
13
+ outputs=["textbox],
14
+ allow_flagging=False,
15
+ live=False,
16
+ )
17
+ interface.launch(enable_queue=True)