dj86 commited on
Commit
71ca591
1 Parent(s): 2917037

Update vlog4chat.py

Browse files
Files changed (1) hide show
  1. vlog4chat.py +0 -14
vlog4chat.py CHANGED
@@ -1,21 +1,8 @@
1
  import os
2
- #import cv2
3
- #import pdb
4
  import sys
5
  import time
6
  import numpy as np
7
- #from PIL import Image
8
- #from transformers import logging
9
- #logging.set_verbosity_error()
10
-
11
- #from models.kts_model import VideoSegmentor
12
- #from models.clip_model import FeatureExtractor
13
- #from models.blip2_model import ImageCaptioner
14
- #from models.grit_model import DenseCaptioner
15
- #from models.whisper_model import AudioTranslator
16
- #from models.gpt_model import LlmReasoner
17
  from utils import logger_creator, format_time
18
- #from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM, LlamaForCausalLM, LlamaTokenizer, AutoModelForSeq2SeqLM
19
 
20
  import together
21
  import warnings
@@ -72,7 +59,6 @@ Chat History:
72
  Follow Up Input: {question}
73
  Standalone question:"""
74
 
75
- #os.environ['HF_HOME'] = '/root/autodl-tmp/cache/'
76
  os.environ["TOGETHER_API_KEY"] = "48bf2536f85b599c7d5d7f9921cc9ee7056f40ed535fd2174d061e1b9abcf8af"
77
 
78
  def get_prompt(instruction, new_system_prompt=DEFAULT_SYSTEM_PROMPT ):
 
1
  import os
 
 
2
  import sys
3
  import time
4
  import numpy as np
 
 
 
 
 
 
 
 
 
 
5
  from utils import logger_creator, format_time
 
6
 
7
  import together
8
  import warnings
 
59
  Follow Up Input: {question}
60
  Standalone question:"""
61
 
 
62
  os.environ["TOGETHER_API_KEY"] = "48bf2536f85b599c7d5d7f9921cc9ee7056f40ed535fd2174d061e1b9abcf8af"
63
 
64
  def get_prompt(instruction, new_system_prompt=DEFAULT_SYSTEM_PROMPT ):