Spaces:
Runtime error
Runtime error
Update app.py
Browse files58 unmodified lines59606162636416 unmodified lines818283848586871 unmodified line8990919293949558 unmodified linesquant_exists, quant_link = check_quant_factory_quant_exists(link)if quant_exists:model_name = link.split('/')[-1] # Extract the model namereturn f"Quant already exists at [QuantFactory/{model_name}-GGUF]({quant_link})."# Check if the quant request already exists in the Google Sheet16 unmodified linesreturn "Request submitted successfully."# Gradio Interfacewith gr.Blocks() as demo:with gr.Row():1 unmodified linegr.Markdown("## QuantFactory - Model Request")link_input = gr.Textbox(label="Hugging Face Link")submit_button = gr.Button("Submit")result = gr.Textbox(label="Result", interactive=False)submit_button.click(fn=submit_link, inputs=link_input, outputs=result)with gr.Column(scale=1): # Right columngr.Image("image.png") # Display the image on the right58 unmodified lines5960616263646516 unmodified lines8283848586871 unmodified line8990919293949558 unmodified linesquant_exists, quant_link = check_quant_factory_quant_exists(link)if quant_exists:model_name = link.split('/')[-1] # Extract the model name# Return a formatted Markdown string to create a clickable hyperlinkreturn f"Quant already exists at [QuantFactory/{model_name}-GGUF]({quant_link})."# Check if the quant request already exists in the Google Sheet16 unmodified linesreturn "Request submitted successfully."# Gradio Interfacewith gr.Blocks() as demo:with gr.Row():1 unmodified linegr.Markdown("## QuantFactory - Model Request")link_input = gr.Textbox(label="Hugging Face Link")submit_button = gr.Button("Submit")result = gr.Markdown() # Use Markdown to render the output as a clickable hyperlinksubmit_button.click(fn=submit_link, inputs=link_input, outputs=result)with gr.Column(scale=1): # Right columngr.Image("image.png") # Display the image on the right
app.py+2-2