Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
import git
|
@@ -42,8 +41,8 @@ def download_repo(repo_type, repo_url_or_id):
|
|
42 |
interface = gr.Interface(
|
43 |
fn=download_repo,
|
44 |
inputs=[
|
45 |
-
gr.
|
46 |
-
gr.
|
47 |
],
|
48 |
outputs="text",
|
49 |
title="Repository Downloader",
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
import git
|
|
|
41 |
interface = gr.Interface(
|
42 |
fn=download_repo,
|
43 |
inputs=[
|
44 |
+
gr.Radio(choices=["GitHub", "Hugging Face"], label="Repository Type"),
|
45 |
+
gr.Textbox(label="Repository URL (GitHub) or Repo ID (Hugging Face)")
|
46 |
],
|
47 |
outputs="text",
|
48 |
title="Repository Downloader",
|