Update app.py
Browse files
app.py
CHANGED
@@ -44,21 +44,15 @@ with gr.Blocks(title="repo2txt") as demo:
|
|
44 |
|
45 |
with gr.Row():
|
46 |
repo_url_input = gr.Textbox(
|
47 |
-
label="GitHub Repository URL or Shorthand",
|
48 |
-
placeholder="e.g., user/repo or https://github.com/user/repo",
|
49 |
-
)
|
50 |
|
51 |
process_button = gr.Button("Process Repository")
|
52 |
-
txt_output = gr.File(label="Download txt file")
|
53 |
-
result_output = gr.Textbox(
|
54 |
-
label="Result",
|
55 |
-
lines=1,
|
56 |
-
placeholder="Processing result will be shown here",
|
57 |
-
)
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
|
|
|
|
|
62 |
|
63 |
# Launch the interface
|
64 |
if __name__ == "__main__":
|
|
|
44 |
|
45 |
with gr.Row():
|
46 |
repo_url_input = gr.Textbox(
|
47 |
+
label="GitHub Repository URL or Shorthand",placeholder="e.g., user/repo or https://github.com/user/repo")
|
|
|
|
|
48 |
|
49 |
process_button = gr.Button("Process Repository")
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
+
with gr.Row():
|
52 |
+
txt_output = gr.File(label="Download txt file")
|
53 |
+
result_output = gr.Textbox(label="Result",lines=1,placeholder="Processing result will be shown here")
|
54 |
+
|
55 |
+
process_button.click(process_repository, inputs=repo_url_input, outputs=[result_output, txt_output])
|
56 |
|
57 |
# Launch the interface
|
58 |
if __name__ == "__main__":
|