VetriVendhan26 commited on
Commit
6ed3de5
·
1 Parent(s): 00b892a

Update colorization.py

Browse files
Files changed (1) hide show
  1. colorization.py +2 -2
colorization.py CHANGED
@@ -1,8 +1,8 @@
 
1
  import os
2
  import gradio as gr
3
  import paddlehub as hub
4
  from pathlib import Path
5
- from datetime import datetime
6
 
7
  # Install DeOldify model
8
  os.system("hub install deoldify==1.0.1")
@@ -28,6 +28,6 @@ def create_interface():
28
  description="Upload a black and white photo to colorize it.",
29
  ).launch()
30
 
31
- # Run the Gradio interface
32
  if __name__ == "__main__":
 
33
  create_interface()
 
1
+ import subprocess
2
  import os
3
  import gradio as gr
4
  import paddlehub as hub
5
  from pathlib import Path
 
6
 
7
  # Install DeOldify model
8
  os.system("hub install deoldify==1.0.1")
 
28
  description="Upload a black and white photo to colorize it.",
29
  ).launch()
30
 
 
31
  if __name__ == "__main__":
32
+ # Run the Gradio interface
33
  create_interface()