Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def get_safetensors():
|
4 |
+
with open("AlignScore-base.safetensors", "rb") as f:
|
5 |
+
return f.read()
|
6 |
+
|
7 |
+
iface = gr.Interface(
|
8 |
+
fn=get_safetensors,
|
9 |
+
inputs=[],
|
10 |
+
outputs=gr.outputs.File(label="Download SafeTensors Model"),
|
11 |
+
title="Download SafeTensors Model",
|
12 |
+
description="Click the button below to download the SafeTensors version of the model."
|
13 |
+
)
|
14 |
+
|
15 |
+
iface.launch()
|