Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -2,22 +2,21 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
import io, base64
|
4 |
from PIL import Image
|
5 |
-
|
6 |
import numpy as np
|
7 |
import tensorflow as tf
|
8 |
import mediapy
|
9 |
-
|
10 |
import os
|
11 |
-
os.system("git clone https://github.com/google-research/frame-interpolation")
|
12 |
import sys
|
|
|
|
|
|
|
13 |
sys.path.append("frame-interpolation")
|
14 |
from eval import interpolator, util
|
15 |
|
16 |
-
from huggingface_hub import snapshot_download
|
17 |
-
|
18 |
ffmpeg_path = util.get_ffmpeg_path()
|
19 |
mediapy.set_ffmpeg(ffmpeg_path)
|
20 |
|
|
|
21 |
story_gen = pipeline("text-generation", "pranavpsv/gpt2-genre-story-generator")
|
22 |
image_gen = gr.Interface.load("spaces/multimodalart/latentdiffusion")
|
23 |
|
|
|
2 |
from transformers import pipeline
|
3 |
import io, base64
|
4 |
from PIL import Image
|
|
|
5 |
import numpy as np
|
6 |
import tensorflow as tf
|
7 |
import mediapy
|
|
|
8 |
import os
|
|
|
9 |
import sys
|
10 |
+
from huggingface_hub import snapshot_download
|
11 |
+
|
12 |
+
os.system("git clone https://github.com/google-research/frame-interpolation")
|
13 |
sys.path.append("frame-interpolation")
|
14 |
from eval import interpolator, util
|
15 |
|
|
|
|
|
16 |
ffmpeg_path = util.get_ffmpeg_path()
|
17 |
mediapy.set_ffmpeg(ffmpeg_path)
|
18 |
|
19 |
+
# Pipelines / Interfaces to use
|
20 |
story_gen = pipeline("text-generation", "pranavpsv/gpt2-genre-story-generator")
|
21 |
image_gen = gr.Interface.load("spaces/multimodalart/latentdiffusion")
|
22 |
|