PANH commited on
Commit
2d8296f
1 Parent(s): f90f560

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
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()