Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
-
import
|
2 |
-
|
3 |
import gradio as gr
|
|
|
|
|
4 |
|
5 |
-
#
|
6 |
if not os.path.exists('DeOldify'):
|
7 |
os.system('git clone https://github.com/jantic/DeOldify.git')
|
8 |
os.system('pip install -r DeOldify/requirements-colab.txt')
|
|
|
1 |
+
import os
|
2 |
+
import sys
|
3 |
import gradio as gr
|
4 |
+
import torch
|
5 |
+
from deoldify.visualize import get_video_colorizer
|
6 |
|
7 |
+
# Cloner le repo DeOldify et installer les dépendances si ce n'est pas déjà fait
|
8 |
if not os.path.exists('DeOldify'):
|
9 |
os.system('git clone https://github.com/jantic/DeOldify.git')
|
10 |
os.system('pip install -r DeOldify/requirements-colab.txt')
|