alexnasa commited on
Commit
41cddf4
·
verified ·
1 Parent(s): 2399b6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -12,6 +12,11 @@
12
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
 
 
 
 
 
15
  import spaces
16
 
17
  import tempfile
 
12
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
+
16
+ # STEP 1: Very first thing in the file: force spawn
17
+ import multiprocessing as mp
18
+ mp.set_start_method("spawn", force=True)
19
+
20
  import spaces
21
 
22
  import tempfile