Ahsen Khaliq commited on
Commit
869d204
·
1 Parent(s): 7b9e7ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,9 +1,10 @@
1
  import os
2
  import gradio as gr
 
3
 
4
  os.system("git clone https://github.com/AK391/PAMA.git")
5
 
6
- os.chdir("PAMA")
7
 
8
  os.system("gdown https://drive.google.com/uc?id=1rPB_qnelVVSad6CtadmhRFi0PMI_RKdy")
9
  os.mkdir("checkpoints")
@@ -19,7 +20,7 @@ description = "Gradio demo for PAMA: Consistent Style Transfer. To use it, simpl
19
 
20
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2201.02233' target='_blank'>Consistent Style Transfer</a> | <a href='https://github.com/computer-vision2022/PAMA' target='_blank'>Github Repo</a></p>"
21
 
22
- examples=[['/home/user/app/Hoover_Tower_Stanford_January_2013.jpeg','/home/user/app/1513px-Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpeg']]
23
  gr.Interface(
24
  inference,
25
  [gr.inputs.Image(type="filepath", label="Content"),gr.inputs.Image(type="filepath", label="Style")],
 
1
  import os
2
  import gradio as gr
3
+ import sys
4
 
5
  os.system("git clone https://github.com/AK391/PAMA.git")
6
 
7
+ sys.path.append('./PAMA/')
8
 
9
  os.system("gdown https://drive.google.com/uc?id=1rPB_qnelVVSad6CtadmhRFi0PMI_RKdy")
10
  os.mkdir("checkpoints")
 
20
 
21
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2201.02233' target='_blank'>Consistent Style Transfer</a> | <a href='https://github.com/computer-vision2022/PAMA' target='_blank'>Github Repo</a></p>"
22
 
23
+ examples=[['Hoover_Tower_Stanford_January_2013.jpeg','1513px-Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpeg']]
24
  gr.Interface(
25
  inference,
26
  [gr.inputs.Image(type="filepath", label="Content"),gr.inputs.Image(type="filepath", label="Style")],