jingyangcarl commited on
Commit
5e0bb40
·
1 Parent(s): 2acf79f

include upate code

Browse files
Files changed (2) hide show
  1. app_texnet.py +2 -3
  2. push_dataset.py +9 -0
app_texnet.py CHANGED
@@ -71,9 +71,8 @@ def create_demo(process):
71
  inputs=inputs,
72
  outputs=result,
73
  examples=[
74
- # ["/dgxusers/Users/jyang/project/ObjectReal/data/control/preprocess/bunny/fused/uv_normal.png", "feather"],
75
- # ["./examples/uv_normal.png", "feather"],
76
- ["https://huggingface.co/spaces/jingyangcarl/matgen/resolve/main/examples/uv_normal.png", "feather"]
77
  ],
78
  )
79
  return demo
 
71
  inputs=inputs,
72
  outputs=result,
73
  examples=[
74
+ ["examples/uv_normal.png", "feather"],
75
+ # ["https://huggingface.co/spaces/jingyangcarl/matgen/resolve/main/examples/uv_normal.png", "feather"]
 
76
  ],
77
  )
78
  return demo
push_dataset.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from huggingface_hub import HfApi
2
+ api = HfApi()
3
+
4
+ api.upload_folder(
5
+ folder_path="./examples",
6
+ repo_id="jingyangcarl/matgen",
7
+ repo_type="space",
8
+ path_in_repo="examples", # Upload to a specific folder
9
+ )