anychat / app_sailor.py
akhaliq's picture
akhaliq HF staff
update
d14e17c
raw
history blame
227 Bytes
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