Create run.py
Browse files
run.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if __name__ == '__main__':
|
2 |
+
import argparse
|
3 |
+
from demo.UI import Main_ui
|
4 |
+
|
5 |
+
parser = argparse.ArgumentParser(description='SEAGULL', formatter_class=argparse.RawTextHelpFormatter)
|
6 |
+
parser.add_argument('--model', help='path to seagull model', default='Zevin2023/SEAGULL-7B')
|
7 |
+
parser.add_argument('--example_path', help='path to examples', default='./imgs/Examples')
|
8 |
+
args = parser.parse_args()
|
9 |
+
|
10 |
+
demo = Main_ui(args).load_demo()
|
11 |
+
demo.launch()
|