Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,6 +12,11 @@ import gradio as gr
|
|
| 12 |
|
| 13 |
from huggingface_hub import snapshot_download
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
os.system("wget https://raw.githubusercontent.com/google-research/frame-interpolation/main/photos/one.png")
|
| 16 |
os.system("wget https://raw.githubusercontent.com/google-research/frame-interpolation/main/photos/two.png")
|
| 17 |
model = snapshot_download(repo_id="akhaliq/frame-interpolation-film-style")
|
|
|
|
| 12 |
|
| 13 |
from huggingface_hub import snapshot_download
|
| 14 |
|
| 15 |
+
from PIL import PngImagePlugin
|
| 16 |
+
LARGE_ENOUGH_NUMBER = 100
|
| 17 |
+
PngImagePlugin.MAX_TEXT_CHUNK = LARGE_ENOUGH_NUMBER * (1024**2)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
os.system("wget https://raw.githubusercontent.com/google-research/frame-interpolation/main/photos/one.png")
|
| 21 |
os.system("wget https://raw.githubusercontent.com/google-research/frame-interpolation/main/photos/two.png")
|
| 22 |
model = snapshot_download(repo_id="akhaliq/frame-interpolation-film-style")
|