Spaces:
Runtime error
Runtime error
Upload llm_preprocess.py
Browse files- llm_preprocess.py +2 -4
llm_preprocess.py
CHANGED
|
@@ -86,9 +86,7 @@ def preprocess_gemini(free_text_caption):
|
|
| 86 |
]
|
| 87 |
|
| 88 |
timestampCaption = model.generate_content(prompt_parts).text
|
| 89 |
-
|
| 90 |
-
import pdb;pdb.set_trace()
|
| 91 |
-
# output = "dog_barking at 0.562-2.562_4.25-6.25_7.01-8.21."
|
| 92 |
return postprocess(timestampCaption)
|
| 93 |
|
| 94 |
def preprocess_gpt(free_text_caption):
|
|
@@ -106,7 +104,7 @@ def preprocess_gpt(free_text_caption):
|
|
| 106 |
)
|
| 107 |
|
| 108 |
timestampCaption = completion_start.choices[0].message.content
|
| 109 |
-
|
| 110 |
return postprocess(timestampCaption)
|
| 111 |
|
| 112 |
if __name__=="__main__":
|
|
|
|
| 86 |
]
|
| 87 |
|
| 88 |
timestampCaption = model.generate_content(prompt_parts).text
|
| 89 |
+
|
|
|
|
|
|
|
| 90 |
return postprocess(timestampCaption)
|
| 91 |
|
| 92 |
def preprocess_gpt(free_text_caption):
|
|
|
|
| 104 |
)
|
| 105 |
|
| 106 |
timestampCaption = completion_start.choices[0].message.content
|
| 107 |
+
|
| 108 |
return postprocess(timestampCaption)
|
| 109 |
|
| 110 |
if __name__=="__main__":
|