Spaces:
Runtime error
Runtime error
Commit
·
ef67abd
1
Parent(s):
6729620
use screet
Browse files- app.py +2 -2
- minigpt4/conversation/conversation.py +4 -0
- requirements.txt +11 -1
app.py
CHANGED
|
@@ -693,5 +693,5 @@ with gr.Blocks() as demo:
|
|
| 693 |
|
| 694 |
clear.click(gradio_reset, [chat_state, img_list], [chatbot, image, text_input, chat_state, img_list], queue=False)
|
| 695 |
|
| 696 |
-
|
| 697 |
-
demo.launch(share=True)
|
|
|
|
| 693 |
|
| 694 |
clear.click(gradio_reset, [chat_state, img_list], [chatbot, image, text_input, chat_state, img_list], queue=False)
|
| 695 |
|
| 696 |
+
demo.launch(share=True, enable_queue=True)
|
| 697 |
+
# demo.launch(share=True)
|
minigpt4/conversation/conversation.py
CHANGED
|
@@ -20,6 +20,10 @@ from typing import List, Tuple, Any
|
|
| 20 |
|
| 21 |
from minigpt4.common.registry import registry
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
class SeparatorStyle(Enum):
|
| 25 |
"""Different separator style."""
|
|
|
|
| 20 |
|
| 21 |
from minigpt4.common.registry import registry
|
| 22 |
|
| 23 |
+
import os
|
| 24 |
+
os.environ.getattribute("API_TOKEN")
|
| 25 |
+
from huggingface_hub import login
|
| 26 |
+
login(token=os.environ['API_TOKEN'])
|
| 27 |
|
| 28 |
class SeparatorStyle(Enum):
|
| 29 |
"""Different separator style."""
|
requirements.txt
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
iopath==0.1.10
|
| 2 |
omegaconf==2.3.0
|
| 3 |
opencv-python==4.7.0.72
|
| 4 |
peft==0.2.0
|
| 5 |
soundfile==0.12.1
|
| 6 |
wandb==0.16.0
|
| 7 |
-
webdataset==0.2.48
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
decorator==4.4.2
|
| 2 |
+
moviepy==1.0.3
|
| 3 |
+
decord==0.6.0
|
| 4 |
iopath==0.1.10
|
| 5 |
omegaconf==2.3.0
|
| 6 |
opencv-python==4.7.0.72
|
| 7 |
peft==0.2.0
|
| 8 |
soundfile==0.12.1
|
| 9 |
wandb==0.16.0
|
| 10 |
+
webdataset==0.2.48
|
| 11 |
+
accelerate==0.24.1
|
| 12 |
+
bitsandbytes
|
| 13 |
+
huggingface_hub
|
| 14 |
+
torch==2.0.0
|
| 15 |
+
torchvision==0.15.1
|
| 16 |
+
timm==0.6.13
|
| 17 |
+
gradio==3.47.1
|