Spaces:
Running on CPU Upgrade

anychat / app_sailor.py
SivilTaram's picture
Create app_sailor.py
a5809e5 verified
raw
history blame
273 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
if __name__ == "__main__":
demo.launch()