File size: 400 Bytes
2d8296f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr

def get_safetensors():
    with open("AlignScore-base.safetensors", "rb") as f:
        return f.read()

iface = gr.Interface(
    fn=get_safetensors,
    inputs=[],
    outputs=gr.outputs.File(label="Download SafeTensors Model"),
    title="Download SafeTensors Model",
    description="Click the button below to download the SafeTensors version of the model."
)

iface.launch()