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