aashish1904 commited on
Commit
fcbd77b
1 Parent(s): 05ed994

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -58,7 +58,8 @@ def submit_link(link):
58
  # Check if the GGUF quantized model already exists in QuantFactory
59
  quant_exists, quant_link = check_quant_factory_quant_exists(link)
60
  if quant_exists:
61
- return f"Quant already exists at [QuantFactory/{link.split('/')[-1]}-GGUF]({quant_link})."
 
62
 
63
  # Check if the quant request already exists in the Google Sheet
64
  if check_quant_exists(link):
@@ -80,6 +81,7 @@ def submit_link(link):
80
 
81
  return "Request submitted successfully."
82
 
 
83
  # Gradio Interface
84
  with gr.Blocks() as demo:
85
  with gr.Row():
 
58
  # Check if the GGUF quantized model already exists in QuantFactory
59
  quant_exists, quant_link = check_quant_factory_quant_exists(link)
60
  if quant_exists:
61
+ model_name = link.split('/')[-1] # Extract the model name
62
+ return f"Quant already exists at [QuantFactory/{model_name}-GGUF]({quant_link})."
63
 
64
  # Check if the quant request already exists in the Google Sheet
65
  if check_quant_exists(link):
 
81
 
82
  return "Request submitted successfully."
83
 
84
+
85
  # Gradio Interface
86
  with gr.Blocks() as demo:
87
  with gr.Row():