Update app.py
Browse files
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
|