Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import gradio as gr
|
|
9 |
import numpy as np
|
10 |
from lxml.html import fromstring
|
11 |
from transformers import pipeline
|
12 |
-
from torch import multiprocessing as mp
|
13 |
#from torch.multiprocessing import Pool
|
14 |
#from pathos.multiprocessing import ProcessPool as Pool
|
15 |
from pathos.threading import ThreadPool as Pool
|
|
|
9 |
import numpy as np
|
10 |
from lxml.html import fromstring
|
11 |
from transformers import pipeline
|
12 |
+
from torch import multiprocessing as mp, nn
|
13 |
#from torch.multiprocessing import Pool
|
14 |
#from pathos.multiprocessing import ProcessPool as Pool
|
15 |
from pathos.threading import ThreadPool as Pool
|