Spaces:
Runtime error
Runtime error
Downloading models
Browse files
app.py
CHANGED
@@ -1,6 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
def fill_mask(stmt,model):
|
5 |
if model == 'bert':
|
6 |
debiased = 'Daniel-Saeedi/debiased-bert-base-uncased'
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
import gc
|
5 |
+
|
6 |
+
# Download models
|
7 |
+
u = pipeline('fill-mask', model='Daniel-Saeedi/debiased-bert-base-uncased')
|
8 |
+
del u
|
9 |
+
gc.collect()
|
10 |
+
|
11 |
def fill_mask(stmt,model):
|
12 |
if model == 'bert':
|
13 |
debiased = 'Daniel-Saeedi/debiased-bert-base-uncased'
|