Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@ import os
|
|
2 |
import gradio as gr
|
3 |
from transformers import pipeline
|
4 |
import spaces # This module is available when deploying on HF Spaces with ZeroGPU
|
|
|
|
|
5 |
|
6 |
# --- Trending models for image text-to-text tasks ---
|
7 |
TRENDING_MODELS = [
|
|
|
2 |
import gradio as gr
|
3 |
from transformers import pipeline
|
4 |
import spaces # This module is available when deploying on HF Spaces with ZeroGPU
|
5 |
+
import multiprocessing
|
6 |
+
multiprocessing.set_start_method("spawn", force=True)
|
7 |
|
8 |
# --- Trending models for image text-to-text tasks ---
|
9 |
TRENDING_MODELS = [
|