Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import numpy as np
|
| 3 |
import tensorflow as tf
|
|
@@ -10,7 +11,7 @@ from PIL import Image, ImageEnhance, ImageFilter
|
|
| 10 |
from tqdm import tqdm
|
| 11 |
|
| 12 |
# Ensure TensorFlow runs on CPU
|
| 13 |
-
|
| 14 |
|
| 15 |
class SwarmAgent:
|
| 16 |
def __init__(self, position, velocity):
|
|
|
|
| 1 |
+
import os
|
| 2 |
import gradio as gr
|
| 3 |
import numpy as np
|
| 4 |
import tensorflow as tf
|
|
|
|
| 11 |
from tqdm import tqdm
|
| 12 |
|
| 13 |
# Ensure TensorFlow runs on CPU
|
| 14 |
+
os.environ['CUDA_VISIBLE_DEVICES'] = '-1'
|
| 15 |
|
| 16 |
class SwarmAgent:
|
| 17 |
def __init__(self, position, velocity):
|