YANGYYYY commited on
Commit
92d9b00
·
verified ·
1 Parent(s): 2f682f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -6,11 +6,11 @@ import argparse
6
  from inference import Predictor
7
  #from black import to_black
8
 
9
- os.system("wget https://huggingface.co/YANGYYYY/cartoonize/tree/main/GeneratorV2_train_photo_Hayao_init.pt")
10
- if os.path.exists("GeneratorV2_train_photo_Hayao_init.pt"):
11
- print("下载成功!")
12
- else:
13
- print("下载失败!")
14
 
15
  def parse_args():
16
  parser = argparse.ArgumentParser()
@@ -38,6 +38,11 @@ def clear_output(input_widget):
38
  input_widget = np.array([])
39
 
40
  with gr.Blocks() as demo:
 
 
 
 
 
41
  gr.Markdown("Transfer image or video files using this demo.")
42
  with gr.Tabs():
43
  with gr.TabItem("Transfer Image"):
 
6
  from inference import Predictor
7
  #from black import to_black
8
 
9
+ # os.system("wget https://huggingface.co/YANGYYYY/cartoonize/tree/main/GeneratorV2_train_photo_Hayao_init.pt")
10
+ # if os.path.exists("GeneratorV2_train_photo_Hayao_init.pt"):
11
+ # print("下载成功!")
12
+ # else:
13
+ # print("下载失败!")
14
 
15
  def parse_args():
16
  parser = argparse.ArgumentParser()
 
38
  input_widget = np.array([])
39
 
40
  with gr.Blocks() as demo:
41
+ os.system("wget https://huggingface.co/YANGYYYY/cartoonize/tree/main/GeneratorV2_train_photo_Hayao_init.pt")
42
+ if os.path.exists("GeneratorV2_train_photo_Hayao_init.pt"):
43
+ print("下载成功!")
44
+ else:
45
+ print("下载失败!")
46
  gr.Markdown("Transfer image or video files using this demo.")
47
  with gr.Tabs():
48
  with gr.TabItem("Transfer Image"):