Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,8 @@ def load_model(model_name):
|
|
| 20 |
|
| 21 |
model_names = [
|
| 22 |
"akhaliq/frame-interpolation-film-style",
|
| 23 |
-
"
|
|
|
|
| 24 |
]
|
| 25 |
|
| 26 |
models = {model_name: load_model(model_name) for model_name in model_names}
|
|
@@ -72,8 +73,8 @@ title = "Sports model"
|
|
| 72 |
description = "Wechat:Liesle1"
|
| 73 |
article = ""
|
| 74 |
examples = [
|
| 75 |
-
['cat3.jpeg', 'cat4.jpeg', 2],
|
| 76 |
-
['cat1.jpeg', 'cat2.jpeg', 2],
|
| 77 |
]
|
| 78 |
|
| 79 |
gr.Interface(
|
|
@@ -89,4 +90,4 @@ gr.Interface(
|
|
| 89 |
description=description,
|
| 90 |
article=article,
|
| 91 |
examples=examples,
|
| 92 |
-
).launch()
|
|
|
|
| 20 |
|
| 21 |
model_names = [
|
| 22 |
"akhaliq/frame-interpolation-film-style",
|
| 23 |
+
"NimaBoscarino/frame-interpolation_film_l1",
|
| 24 |
+
"NimaBoscarino/frame_interpolation_film_vgg",
|
| 25 |
]
|
| 26 |
|
| 27 |
models = {model_name: load_model(model_name) for model_name in model_names}
|
|
|
|
| 73 |
description = "Wechat:Liesle1"
|
| 74 |
article = ""
|
| 75 |
examples = [
|
| 76 |
+
['cat3.jpeg', 'cat4.jpeg', 2, model_names[0]],
|
| 77 |
+
['cat1.jpeg', 'cat2.jpeg', 2, model_names[1]],
|
| 78 |
]
|
| 79 |
|
| 80 |
gr.Interface(
|
|
|
|
| 90 |
description=description,
|
| 91 |
article=article,
|
| 92 |
examples=examples,
|
| 93 |
+
).launch()
|