ysharma HF staff commited on
Commit
5932996
1 Parent(s): 422f2d7

import required library

Browse files

Importing 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
```

Files changed (1) hide show
  1. app.py +1 -0
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