Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,14 +26,12 @@ def clone(profile: gr.OAuthProfile, oauth_token: gr.OAuthToken, repo_git, repo_h
|
|
| 26 |
with gr.Blocks() as demo:
|
| 27 |
gr.LoginButton()
|
| 28 |
with gr.Row():
|
| 29 |
-
|
| 30 |
-
btn = gr.Button("Bring over!")
|
| 31 |
with gr.Column():
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
output = gr.Textbox(label="Output repo")
|
| 37 |
|
| 38 |
btn.click(fn=clone, inputs=[repo_git, repo_hf, sdk_choices], outputs=output)
|
| 39 |
|
|
|
|
| 26 |
with gr.Blocks() as demo:
|
| 27 |
gr.LoginButton()
|
| 28 |
with gr.Row():
|
| 29 |
+
btn = gr.Button("Bring over!")
|
|
|
|
| 30 |
with gr.Column():
|
| 31 |
+
repo_git = gr.Textbox(label="GitHub Repository")
|
| 32 |
+
repo_hf = gr.Textbox(label="Hugging Face Space name")
|
| 33 |
+
sdk_choices = gr.Radio(["gradio", "streamlit", "docker", "static"], label="SDK Choices")
|
| 34 |
+
output = gr.Textbox(label="Output repo")
|
|
|
|
| 35 |
|
| 36 |
btn.click(fn=clone, inputs=[repo_git, repo_hf, sdk_choices], outputs=output)
|
| 37 |
|