Spaces:
Runtime error
Runtime error
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() |