File size: 326 Bytes
722177d
 
f3456ce
 
 
 
 
 
 
 
19e4851
80ca826
19e4851
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr

@spaces.GPU
gr.load("models/infly/OpenCoder-8B-Instruct").launch()

#if torch.cuda.is_available() or os.getenv("ZERO_GPU_SUPPORT", False):
#    gr.load("models/infly/OpenCoder-8B-Instruct").launch()
#    @spaces.GPU
#else:
#    raise RuntimeError("No compatible GPU environment found for this model.")