OpenCoder / app.py
MegaTronX's picture
Update app.py
f3456ce verified
raw
history blame
326 Bytes
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.")