Spaces:
Runtime error
Runtime error
Commit
·
efacce8
1
Parent(s):
732c57b
added transformers.utils.move_cache()
Browse files
app.py
CHANGED
@@ -13,6 +13,8 @@ import gradio as gr
|
|
13 |
from torchvision.transforms import Compose, Resize, CenterCrop, ToTensor, Normalize
|
14 |
from transformers import pipeline, GPT2LMHeadModel, GPT2Tokenizer
|
15 |
|
|
|
|
|
16 |
example_1 = "ninja turtles fighting against a mosquito, in the sea"
|
17 |
example_2 = "warrior fighting zombies with a sword, in the forest"
|
18 |
example_3 = "western cowboy fighting against a dragon, in the desert"
|
|
|
13 |
from torchvision.transforms import Compose, Resize, CenterCrop, ToTensor, Normalize
|
14 |
from transformers import pipeline, GPT2LMHeadModel, GPT2Tokenizer
|
15 |
|
16 |
+
transformers.utils.move_cache()
|
17 |
+
|
18 |
example_1 = "ninja turtles fighting against a mosquito, in the sea"
|
19 |
example_2 = "warrior fighting zombies with a sword, in the forest"
|
20 |
example_3 = "western cowboy fighting against a dragon, in the desert"
|