Spaces:
Runtime error
Runtime error
update chat
Browse files
app.py
CHANGED
|
@@ -1,4 +1,6 @@
|
|
| 1 |
import os
|
|
|
|
|
|
|
| 2 |
# os.system("cd transformers && pip install .")
|
| 3 |
os.system("cd multimodal && pip install .")
|
| 4 |
os.system("cd multimodal/YOLOX && pip install .")
|
|
@@ -20,6 +22,10 @@ from huggingface_hub import hf_hub_download, login
|
|
| 20 |
from open_flamingo.src.factory import create_model_and_transforms
|
| 21 |
from open_flamingo.chat.conversation import Chat, CONV_VISION
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
SHARED_UI_WARNING = f'''### [NOTE] It is possible that you are waiting in a lengthy queue.
|
| 24 |
|
| 25 |
You can duplicate and use it with a paid private GPU.
|
|
|
|
| 1 |
import os
|
| 2 |
+
import sys
|
| 3 |
+
from pathlib import Path
|
| 4 |
# os.system("cd transformers && pip install .")
|
| 5 |
os.system("cd multimodal && pip install .")
|
| 6 |
os.system("cd multimodal/YOLOX && pip install .")
|
|
|
|
| 22 |
from open_flamingo.src.factory import create_model_and_transforms
|
| 23 |
from open_flamingo.chat.conversation import Chat, CONV_VISION
|
| 24 |
|
| 25 |
+
sys.path.append(str(Path(__file__).parent.parent.parent))
|
| 26 |
+
TEMP_FILE_DIR = Path(__file__).parent / 'temp'
|
| 27 |
+
TEMP_FILE_DIR.mkdir(parents=True, exist_ok=True)
|
| 28 |
+
|
| 29 |
SHARED_UI_WARNING = f'''### [NOTE] It is possible that you are waiting in a lengthy queue.
|
| 30 |
|
| 31 |
You can duplicate and use it with a paid private GPU.
|