Spaces:
Runtime error
Runtime error
import required library
Browse filesImporting the required `os `python library to remediate this error as seen in logs -
```
File "app.py", line 26, in <module>
is_spaces = True if "SPACE_ID" in os.environ else False
NameError: name 'os' is not defined
```
app.py
CHANGED
@@ -12,6 +12,7 @@ import argparse
|
|
12 |
import imageio
|
13 |
import numpy as np
|
14 |
import gradio as gr
|
|
|
15 |
from PIL import Image
|
16 |
from subprocess import PIPE, run
|
17 |
|
|
|
12 |
import imageio
|
13 |
import numpy as np
|
14 |
import gradio as gr
|
15 |
+
import os
|
16 |
from PIL import Image
|
17 |
from subprocess import PIPE, run
|
18 |
|