Spaces:
Runtime error
Runtime error
Update app.py
Browse files58 unmodified lines5960616263646516 unmodified lines828384848586871 unmodified line899091929293949558 unmodified lines quant_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 hyperlink return f"Quant already exists at [QuantFactory/{model_name}-GGUF]({quant_link})."
# Check if the quant request already exists in the Google Sheet16 unmodified lines
return "Request submitted successfully."
# Gradio Interfacewith gr.Blocks() as demo: with gr.Row():1 unmodified line gr.Markdown("## QuantFactory - Model Request") link_input = gr.Textbox(label="Hugging Face Link") submit_button = gr.Button("Submit") result = gr.Textbox(label="Result", interactive=False) result = gr.Markdown() # Use Markdown to render the output as a clickable hyperlink submit_button.click(fn=submit_link, inputs=link_input, outputs=result) with gr.Column(scale=1): # Right column gr.Image("image.png") # Display the image on the rightapp.py+2-2