File size: 227 Bytes
0be3840
 
d14e17c
0be3840
d14e17c
 
0be3840
 
 
1
2
3
4
5
6
7
8
9
10
import gradio as gr
import spaces
import transformers_gradio

demo = gr.load(name="sail/Sailor2-20B-Chat", src=transformers_gradio.registry)
demo.fn = spaces.GPU()(demo.fn)

for fn in demo.fns.values():
    fn.api_name = False