Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
import os
|
| 2 |
import sys
|
| 3 |
-
from demo.UI import Main_ui
|
| 4 |
|
| 5 |
if __name__ == '__main__':
|
| 6 |
# Install the package in editable mode
|
|
|
|
| 7 |
os.system("pip install -e .")
|
| 8 |
os.system("pip install git+https://github.com/facebookresearch/segment-anything.git")
|
| 9 |
|
|
@@ -53,6 +53,8 @@ if __name__ == '__main__':
|
|
| 53 |
# os.system("cd ..")
|
| 54 |
|
| 55 |
import argparse
|
|
|
|
|
|
|
| 56 |
|
| 57 |
parser = argparse.ArgumentParser(description='SEAGULL', formatter_class=argparse.RawTextHelpFormatter)
|
| 58 |
parser.add_argument('--model', help='path to seagull model', default='Zevin2023/SEAGULL-7B')
|
|
|
|
| 1 |
import os
|
| 2 |
import sys
|
|
|
|
| 3 |
|
| 4 |
if __name__ == '__main__':
|
| 5 |
# Install the package in editable mode
|
| 6 |
+
os.system("pip uninstall -y gradio")
|
| 7 |
os.system("pip install -e .")
|
| 8 |
os.system("pip install git+https://github.com/facebookresearch/segment-anything.git")
|
| 9 |
|
|
|
|
| 53 |
# os.system("cd ..")
|
| 54 |
|
| 55 |
import argparse
|
| 56 |
+
from demo.UI import Main_ui
|
| 57 |
+
|
| 58 |
|
| 59 |
parser = argparse.ArgumentParser(description='SEAGULL', formatter_class=argparse.RawTextHelpFormatter)
|
| 60 |
parser.add_argument('--model', help='path to seagull model', default='Zevin2023/SEAGULL-7B')
|