huiwenshi commited on
Commit
9637d4f
Β·
1 Parent(s): ef29ca6
Files changed (46) hide show
  1. assets/example_images/{example_004.png β†’ 004.png} +0 -0
  2. assets/example_images/054.png +0 -0
  3. assets/example_images/1027.png +0 -0
  4. assets/example_images/1093.png +0 -0
  5. assets/example_images/1241.png +0 -0
  6. assets/example_images/135.png +0 -0
  7. assets/example_images/1445.png +0 -0
  8. assets/example_images/1449.png +0 -0
  9. assets/example_images/1457.png +0 -0
  10. assets/example_images/147.png +0 -0
  11. assets/example_images/1508.png +0 -0
  12. assets/example_images/1526.png +0 -0
  13. assets/example_images/1552.png +0 -0
  14. assets/example_images/1557.png +0 -0
  15. assets/example_images/156.png +0 -0
  16. assets/example_images/1576.png +0 -0
  17. assets/example_images/159.png +0 -0
  18. assets/example_images/1640.png +0 -0
  19. assets/example_images/1645.png +0 -0
  20. assets/example_images/1659.png +0 -0
  21. assets/example_images/1669.png +0 -0
  22. assets/example_images/1673.png +0 -0
  23. assets/example_images/1695.png +0 -0
  24. assets/example_images/171.png +0 -0
  25. assets/example_images/1712.png +0 -0
  26. assets/example_images/1714.png +0 -0
  27. assets/example_images/1731.png +0 -0
  28. assets/example_images/1752.png +0 -0
  29. assets/example_images/1803.png +0 -0
  30. assets/example_images/1832.png +0 -0
  31. assets/example_images/226.png +0 -0
  32. assets/example_images/227.png +0 -0
  33. assets/example_images/230.png +0 -0
  34. assets/example_images/360.png +0 -0
  35. assets/example_images/540.png +0 -0
  36. assets/example_images/551.png +0 -0
  37. assets/example_images/565.png +0 -0
  38. assets/example_images/709.png +0 -0
  39. assets/example_images/732.png +0 -0
  40. assets/example_images/755.png +0 -0
  41. assets/example_images/868.png +0 -0
  42. assets/example_images/884.png +0 -0
  43. assets/example_images/889.png +0 -0
  44. assets/example_images/example_001.png +0 -0
  45. assets/example_images/example_003.png +0 -0
  46. hg_app.py +10 -8
assets/example_images/{example_004.png β†’ 004.png} RENAMED
File without changes
assets/example_images/054.png DELETED
Binary file (135 kB)
 
assets/example_images/1027.png DELETED
Binary file (69.6 kB)
 
assets/example_images/1093.png DELETED
Binary file (150 kB)
 
assets/example_images/1241.png DELETED
Binary file (343 kB)
 
assets/example_images/135.png DELETED
Binary file (174 kB)
 
assets/example_images/1445.png DELETED
Binary file (156 kB)
 
assets/example_images/1449.png DELETED
Binary file (991 kB)
 
assets/example_images/1457.png DELETED
Binary file (470 kB)
 
assets/example_images/147.png DELETED
Binary file (160 kB)
 
assets/example_images/1508.png DELETED
Binary file (199 kB)
 
assets/example_images/1526.png DELETED
Binary file (103 kB)
 
assets/example_images/1552.png DELETED
Binary file (123 kB)
 
assets/example_images/1557.png DELETED
Binary file (139 kB)
 
assets/example_images/156.png DELETED
Binary file (200 kB)
 
assets/example_images/1576.png DELETED
Binary file (157 kB)
 
assets/example_images/159.png DELETED
Binary file (163 kB)
 
assets/example_images/1640.png DELETED
Binary file (187 kB)
 
assets/example_images/1645.png DELETED
Binary file (179 kB)
 
assets/example_images/1659.png DELETED
Binary file (244 kB)
 
assets/example_images/1669.png DELETED
Binary file (136 kB)
 
assets/example_images/1673.png DELETED
Binary file (104 kB)
 
assets/example_images/1695.png DELETED
Binary file (182 kB)
 
assets/example_images/171.png DELETED
Binary file (188 kB)
 
assets/example_images/1712.png DELETED
Binary file (170 kB)
 
assets/example_images/1714.png DELETED
Binary file (141 kB)
 
assets/example_images/1731.png DELETED
Binary file (165 kB)
 
assets/example_images/1752.png DELETED
Binary file (140 kB)
 
assets/example_images/1803.png DELETED
Binary file (65.9 kB)
 
assets/example_images/1832.png DELETED
Binary file (102 kB)
 
assets/example_images/226.png DELETED
Binary file (137 kB)
 
assets/example_images/227.png DELETED
Binary file (88.9 kB)
 
assets/example_images/230.png DELETED
Binary file (138 kB)
 
assets/example_images/360.png DELETED
Binary file (165 kB)
 
assets/example_images/540.png DELETED
Binary file (162 kB)
 
assets/example_images/551.png DELETED
Binary file (171 kB)
 
assets/example_images/565.png DELETED
Binary file (207 kB)
 
assets/example_images/709.png DELETED
Binary file (117 kB)
 
assets/example_images/732.png DELETED
Binary file (176 kB)
 
assets/example_images/755.png DELETED
Binary file (138 kB)
 
assets/example_images/868.png DELETED
Binary file (89.2 kB)
 
assets/example_images/884.png DELETED
Binary file (118 kB)
 
assets/example_images/889.png DELETED
Binary file (184 kB)
 
assets/example_images/example_001.png DELETED
Binary file (97.1 kB)
 
assets/example_images/example_003.png DELETED
Binary file (329 kB)
 
hg_app.py CHANGED
@@ -1,5 +1,14 @@
1
  # pip install gradio==4.44.1
2
- if True:
 
 
 
 
 
 
 
 
 
3
  import os
4
  import spaces
5
  import subprocess
@@ -370,13 +379,6 @@ def build_app():
370
 
371
 
372
  if __name__ == '__main__':
373
- import argparse
374
-
375
- parser = argparse.ArgumentParser()
376
- parser.add_argument('--port', type=int, default=8080)
377
- parser.add_argument('--cache-path', type=str, default='gradio_cache')
378
- parser.add_argument('--enable_t23d', default=True)
379
- args = parser.parse_args()
380
 
381
  CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
382
  SAVE_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), args.cache_path)
 
1
  # pip install gradio==4.44.1
2
+ import argparse
3
+ parser = argparse.ArgumentParser()
4
+ parser.add_argument('--port', type=int, default=8080)
5
+ parser.add_argument('--cache-path', type=str, default='gradio_cache')
6
+ parser.add_argument('--enable_t23d', default=True)
7
+ parser.add_argument('--local', action="store_true")
8
+ args = parser.parse_args()
9
+
10
+ print(f"Running on {'local' if args.local else 'huggingface'}")
11
+ if not args.local:
12
  import os
13
  import spaces
14
  import subprocess
 
379
 
380
 
381
  if __name__ == '__main__':
 
 
 
 
 
 
 
382
 
383
  CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
384
  SAVE_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), args.cache_path)