dwb2023 commited on
Commit
8537faa
β€’
1 Parent(s): 66b49d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -115,8 +115,16 @@ app = gr.Blocks(theme="sudeepshouche/minimalist")
115
 
116
  with app:
117
  gr.Markdown("# Hugging Face Space / Model Repository Content Extractor")
118
- url_input = gr.Textbox(label="https:// URL of Repository", placeholder="for example, https://huggingface.co/llava-hf/llava-v1.6-mistral-7b-hf")
119
- output_display = gr.Textbox(label="Extracted Content", show_copy_button=True, lines=20, placeholder="Repository content will be extracted here...\n\nReview and search through the content here OR simply copy it for offline analysis!!. πŸ€–")
 
 
 
 
 
 
 
 
120
  extract_button = gr.Button("Extract Content")
121
 
122
  extract_button.click(fn=extract_and_display, inputs=url_input, outputs=output_display)
 
115
 
116
  with app:
117
  gr.Markdown("# Hugging Face Space / Model Repository Content Extractor")
118
+ url_input = gr.Textbox(label="https:// URL of Repository", placeholder="Enter the repository URL here OR select an example below...")
119
+ url_examples = gr.Examples(
120
+ examples=[
121
+ ["https://huggingface.co/spaces/big-vision/paligemma-hf"],
122
+ ["https://huggingface.co/microsoft/Phi-3-vision-128k-instruct"],
123
+ ["https://huggingface.co/llava-hf/llava-v1.6-mistral-7b-hf"]
124
+ ],
125
+ inputs=url_input
126
+ )
127
+ 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 32 kb\n\n\n\nReview and search through the content here OR simply copy it for offline analysis!!. πŸ€–")
128
  extract_button = gr.Button("Extract Content")
129
 
130
  extract_button.click(fn=extract_and_display, inputs=url_input, outputs=output_display)