Update app.py
Browse files
app.py
CHANGED
@@ -21,6 +21,8 @@ if __name__ == '__main__':
|
|
21 |
print('path: -----', sys.path)
|
22 |
os.system("pip list")
|
23 |
os.system("pip show gradio")
|
|
|
|
|
24 |
|
25 |
|
26 |
# Install NVM (Node Version Manager)
|
@@ -53,14 +55,14 @@ if __name__ == '__main__':
|
|
53 |
# Change back to the previous directory
|
54 |
# os.system("cd ..")
|
55 |
|
56 |
-
import argparse
|
57 |
-
from demo.UI import Main_ui
|
58 |
|
59 |
|
60 |
-
parser = argparse.ArgumentParser(description='SEAGULL', formatter_class=argparse.RawTextHelpFormatter)
|
61 |
-
parser.add_argument('--model', help='path to seagull model', default='Zevin2023/SEAGULL-7B')
|
62 |
-
parser.add_argument('--example_path', help='path to examples', default='./imgs/Examples')
|
63 |
-
args = parser.parse_args()
|
64 |
|
65 |
-
demo = Main_ui(args).load_demo()
|
66 |
-
demo.launch()
|
|
|
21 |
print('path: -----', sys.path)
|
22 |
os.system("pip list")
|
23 |
os.system("pip show gradio")
|
24 |
+
|
25 |
+
os.system("python run.py")
|
26 |
|
27 |
|
28 |
# Install NVM (Node Version Manager)
|
|
|
55 |
# Change back to the previous directory
|
56 |
# os.system("cd ..")
|
57 |
|
58 |
+
# import argparse
|
59 |
+
# from demo.UI import Main_ui
|
60 |
|
61 |
|
62 |
+
# parser = argparse.ArgumentParser(description='SEAGULL', formatter_class=argparse.RawTextHelpFormatter)
|
63 |
+
# parser.add_argument('--model', help='path to seagull model', default='Zevin2023/SEAGULL-7B')
|
64 |
+
# parser.add_argument('--example_path', help='path to examples', default='./imgs/Examples')
|
65 |
+
# args = parser.parse_args()
|
66 |
|
67 |
+
# demo = Main_ui(args).load_demo()
|
68 |
+
# demo.launch()
|