Update app.py
Browse files
app.py
CHANGED
@@ -89,25 +89,26 @@ div#col-container{
|
|
89 |
with gr.Blocks(css=css) as demo:
|
90 |
with gr.Column(elem_id="col-container"):
|
91 |
gr.Markdown("# Clone GitHub repo to Space")
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
with gr.Row():
|
97 |
-
space_destination = gr.Textbox(
|
98 |
-
label="Space ID",
|
99 |
-
placeholder="your_hf_username/space_name"
|
100 |
)
|
101 |
-
|
102 |
-
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
)
|
105 |
-
space_sdk = gr.Radio(
|
106 |
-
label="Space SDK",
|
107 |
-
info="If specified space ID doesn't exist, a new private space will be created. In that case, please choose a SDK",
|
108 |
-
choices=["gradio", "docker", "static"],
|
109 |
-
value="gradio"
|
110 |
-
)
|
111 |
submit_btn = gr.Button("Clone git repo to my space")
|
112 |
status = gr.Textbox(
|
113 |
label="Status"
|
|
|
89 |
with gr.Blocks(css=css) as demo:
|
90 |
with gr.Column(elem_id="col-container"):
|
91 |
gr.Markdown("# Clone GitHub repo to Space")
|
92 |
+
with gr.Group():
|
93 |
+
git_repo_url = gr.Textbox(
|
94 |
+
label="Git repo URL to clone",
|
95 |
+
placeholder="https://github.com/username/my-repo.git"
|
|
|
|
|
|
|
|
|
96 |
)
|
97 |
+
with gr.Row():
|
98 |
+
space_destination = gr.Textbox(
|
99 |
+
label="Space ID",
|
100 |
+
placeholder="your_hf_username/space_name"
|
101 |
+
)
|
102 |
+
user_token = gr.Textbox(
|
103 |
+
label="WRITE permissions HF token",
|
104 |
+
type="password"
|
105 |
+
)
|
106 |
+
space_sdk = gr.Radio(
|
107 |
+
label="Space SDK",
|
108 |
+
info="If specified space ID doesn't exist, a new private space will be created. In that case, please choose a SDK",
|
109 |
+
choices=["gradio", "docker", "static"],
|
110 |
+
value="gradio"
|
111 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
submit_btn = gr.Button("Clone git repo to my space")
|
113 |
status = gr.Textbox(
|
114 |
label="Status"
|