wdcqc commited on
Commit
28b906b
1 Parent(s): 823da69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -2,13 +2,21 @@
2
  # Copyright @ 2023 wdcqc/aieud project.
3
  # Open-source under license obtainable in project root (LICENSE.md).
4
  import argparse
 
5
  import urllib.request
6
- from wfd.webui import start_demo
7
 
8
  if __name__ == "__main__":
 
9
  # try to fix the CDLL problem
10
  urllib.request.urlretrieve("https://github.com/wdcqc/WaveFunctionDiffusion/raw/remaster/wfd/mpqapi/libstorm.so", "/home/user/.local/lib/python3.8/site-packages/wfd/mpqapi/libstorm.so")
 
11
 
 
 
 
 
 
 
12
  class Arguments:
13
  colab = False
14
  link_to_colab = True
 
2
  # Copyright @ 2023 wdcqc/aieud project.
3
  # Open-source under license obtainable in project root (LICENSE.md).
4
  import argparse
5
+ import os
6
  import urllib.request
 
7
 
8
  if __name__ == "__main__":
9
+ os.makedirs("/home/user/.local/lib/python3.8/site-packages/wfd/mpqapi/")
10
  # try to fix the CDLL problem
11
  urllib.request.urlretrieve("https://github.com/wdcqc/WaveFunctionDiffusion/raw/remaster/wfd/mpqapi/libstorm.so", "/home/user/.local/lib/python3.8/site-packages/wfd/mpqapi/libstorm.so")
12
+ urllib.request.urlretrieve("https://github.com/wdcqc/WaveFunctionDiffusion/raw/remaster/wfd/mpqapi/libstorm.so", "libstorm.so")
13
 
14
+ if os.path.exists("/home/user/.local/lib/python3.8/site-packages/wfd/mpqapi/libstorm.so"):
15
+ print("libstorm EXISTS!!!")
16
+ else:
17
+ print("libstorm DOES NOT EXIST!!!")
18
+
19
+ from wfd.webui import start_demo
20
  class Arguments:
21
  colab = False
22
  link_to_colab = True