Spaces:
Runtime error
Runtime error
Commit
·
15de16d
1
Parent(s):
bc7f05e
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ pipe = InferencePipeline(HF_TOKEN)
|
|
54 |
trainer = Trainer(HF_TOKEN)
|
55 |
|
56 |
with gr.Blocks(css='style.css') as demo:
|
57 |
-
if
|
58 |
show_warning(SHARED_UI_WARNING)
|
59 |
elif not torch.cuda.is_available():
|
60 |
show_warning(CUDA_NOT_AVAILABLE_WARNING)
|
|
|
54 |
trainer = Trainer(HF_TOKEN)
|
55 |
|
56 |
with gr.Blocks(css='style.css') as demo:
|
57 |
+
if SPACE_ID != ORIGINAL_SPACE_ID:
|
58 |
show_warning(SHARED_UI_WARNING)
|
59 |
elif not torch.cuda.is_available():
|
60 |
show_warning(CUDA_NOT_AVAILABLE_WARNING)
|