Spaces:
Build error
Build error
app.py
CHANGED
@@ -28,6 +28,8 @@ def get_answers_timestamp(question, transcript):
|
|
28 |
tokenizer = AutoTokenizer.from_pretrained(model_ckpt)
|
29 |
#question = "any funny examples in video??"
|
30 |
context = transcript
|
|
|
|
|
31 |
inputs = tokenizer(question, context, return_overflowing_tokens=True, max_length=512, stride = 25)
|
32 |
|
33 |
#overlaps
|
|
|
28 |
tokenizer = AutoTokenizer.from_pretrained(model_ckpt)
|
29 |
#question = "any funny examples in video??"
|
30 |
context = transcript
|
31 |
+
print(f"Input Question is : {question}")
|
32 |
+
print(f"Type of trancript is : {type(transcript)}, Length of transcript is : {len(transcript)}")
|
33 |
inputs = tokenizer(question, context, return_overflowing_tokens=True, max_length=512, stride = 25)
|
34 |
|
35 |
#overlaps
|