MegaTronX commited on
Commit
f3456ce
·
verified ·
1 Parent(s): db77fc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -1,10 +1,13 @@
1
  import gradio as gr
2
 
3
- if torch.cuda.is_available() or os.getenv("ZERO_GPU_SUPPORT", False):
4
- gr.load("models/infly/OpenCoder-8B-Instruct").launch()
5
- @spaces.GPU
6
- else:
7
- raise RuntimeError("No compatible GPU environment found for this model.")
 
 
 
8
 
9
 
10
 
 
1
  import gradio as gr
2
 
3
+ @spaces.GPU
4
+ gr.load("models/infly/OpenCoder-8B-Instruct").launch()
5
+
6
+ #if torch.cuda.is_available() or os.getenv("ZERO_GPU_SUPPORT", False):
7
+ # gr.load("models/infly/OpenCoder-8B-Instruct").launch()
8
+ # @spaces.GPU
9
+ #else:
10
+ # raise RuntimeError("No compatible GPU environment found for this model.")
11
 
12
 
13