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