Spaces:
Running
on
Zero
Running
on
Zero
reorganize ui elements
Browse files
app.py
CHANGED
@@ -41,6 +41,16 @@ def handle_model_summary(model_name):
|
|
41 |
app = gr.Blocks(theme="sudeepshouche/minimalist")
|
42 |
|
43 |
with app:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
with gr.Tab("Repository Extraction"):
|
45 |
gr.Markdown("# Hugging Face Space / Model Repository Content Extractor")
|
46 |
url_input = gr.Textbox(label="https:// URL of Repository", placeholder="Enter the repository URL here OR select an example below...")
|
@@ -56,14 +66,6 @@ with app:
|
|
56 |
extract_button = gr.Button("Extract Content")
|
57 |
output_display = gr.Textbox(label="Extracted Repository Content", show_copy_button=True, lines=20, placeholder="Repository content will be extracted here...\n\nMetadata is captured for all files, but text content provided only for files less than 16 kb\n\n\n\nReview and search through the content here OR simply copy it for offline analysis!!. 🤖")
|
58 |
extract_button.click(fn=extract_and_display, inputs=url_input, outputs=output_display)
|
59 |
-
|
60 |
-
with gr.Tab("Model Explorer"):
|
61 |
-
gr.Markdown("## Retrieve and Display Model Architecture")
|
62 |
-
model_name_input = gr.Textbox(label="Model Name", placeholder="Enter the model name to retrieve its architecture...")
|
63 |
-
model_output = gr.Textbox(label="Model Architecture", lines=20, placeholder="Model architecture will appear here...", show_copy_button=True)
|
64 |
-
error_output = gr.Textbox(label="Error", lines=10, placeholder="Exceptions will appear here...", show_copy_button=True)
|
65 |
-
model_submit_button = gr.Button("Submit")
|
66 |
-
model_submit_button.click(fn=handle_model_summary, inputs=model_name_input, outputs=[model_output, error_output])
|
67 |
|
68 |
with gr.Tab("Non-HF Repository Extraction"):
|
69 |
gr.Markdown("# Non-Hugging Face Repository Content Extractor")
|
|
|
41 |
app = gr.Blocks(theme="sudeepshouche/minimalist")
|
42 |
|
43 |
with app:
|
44 |
+
|
45 |
+
with gr.Tab("Model Explorer"):
|
46 |
+
gr.Markdown("## Retrieve and Display Model Architecture")
|
47 |
+
model_name_input = gr.Textbox(label="Model Name", placeholder="Enter the model name to retrieve its architecture...")
|
48 |
+
model_submit_button = gr.Button("Submit")
|
49 |
+
model_output = gr.Textbox(label="Model Architecture", lines=20, placeholder="Model architecture will appear here...", show_copy_button=True)
|
50 |
+
error_output = gr.Textbox(label="Error", lines=10, placeholder="Exceptions will appear here...", show_copy_button=True)
|
51 |
+
model_submit_button.click(fn=handle_model_summary, inputs=model_name_input, outputs=[model_output, error_output])
|
52 |
+
|
53 |
+
|
54 |
with gr.Tab("Repository Extraction"):
|
55 |
gr.Markdown("# Hugging Face Space / Model Repository Content Extractor")
|
56 |
url_input = gr.Textbox(label="https:// URL of Repository", placeholder="Enter the repository URL here OR select an example below...")
|
|
|
66 |
extract_button = gr.Button("Extract Content")
|
67 |
output_display = gr.Textbox(label="Extracted Repository Content", show_copy_button=True, lines=20, placeholder="Repository content will be extracted here...\n\nMetadata is captured for all files, but text content provided only for files less than 16 kb\n\n\n\nReview and search through the content here OR simply copy it for offline analysis!!. 🤖")
|
68 |
extract_button.click(fn=extract_and_display, inputs=url_input, outputs=output_display)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
|
70 |
with gr.Tab("Non-HF Repository Extraction"):
|
71 |
gr.Markdown("# Non-Hugging Face Repository Content Extractor")
|