oobabooga commited on
Commit
2d02254
·
verified ·
1 Parent(s): 2c659e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -139,7 +139,7 @@ def download_gguf_partial(url, max_bytes=25 * 1024 * 1024):
139
  def load_metadata(model_url, current_metadata):
140
  """Load metadata from model URL and return updated metadata dict"""
141
  if not model_url or model_url.strip() == "":
142
- return {}, "Please enter a model URL"
143
 
144
  try:
145
  # Get model size first
@@ -351,8 +351,7 @@ def create_ui():
351
  # Model URL input
352
  model_url = gr.Textbox(
353
  label="GGUF Model URL",
354
- placeholder="https://huggingface.co/unsloth/Qwen3-235B-A22B-GGUF/blob/main/UD-Q2_K_XL/Qwen3-235B-A22B-UD-Q2_K_XL-00001-of-00002.gguf",
355
- value=""
356
  )
357
 
358
  # Load metadata button
 
139
  def load_metadata(model_url, current_metadata):
140
  """Load metadata from model URL and return updated metadata dict"""
141
  if not model_url or model_url.strip() == "":
142
+ return {}, gr.update(), "Please enter a model URL"
143
 
144
  try:
145
  # Get model size first
 
351
  # Model URL input
352
  model_url = gr.Textbox(
353
  label="GGUF Model URL",
354
+ value="https://huggingface.co/unsloth/Qwen3-235B-A22B-GGUF/blob/main/UD-Q2_K_XL/Qwen3-235B-A22B-UD-Q2_K_XL-00001-of-00002.gguf"
 
355
  )
356
 
357
  # Load metadata button