Spaces:
Sleeping
Sleeping
Commit ·
e8a8093
1
Parent(s): 054cb4d
Add ZeroGPU stuff
Browse files
app.py
CHANGED
|
@@ -3,6 +3,15 @@ import gradio as gr
|
|
| 3 |
from old_draft_day_cards import build_app_old
|
| 4 |
from draft_day_cards import build_app_new
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
with gr.Blocks() as demo:
|
| 7 |
gr.Markdown("# Prospect Cards")
|
| 8 |
with gr.Tabs():
|
|
|
|
| 3 |
from old_draft_day_cards import build_app_old
|
| 4 |
from draft_day_cards import build_app_new
|
| 5 |
|
| 6 |
+
try:
|
| 7 |
+
import spaces
|
| 8 |
+
|
| 9 |
+
@spaces.GPU
|
| 10 |
+
def _zerogpu():
|
| 11 |
+
pass
|
| 12 |
+
except:
|
| 13 |
+
pass
|
| 14 |
+
|
| 15 |
with gr.Blocks() as demo:
|
| 16 |
gr.Markdown("# Prospect Cards")
|
| 17 |
with gr.Tabs():
|