Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
# Requirements.txt
|
2 |
import torch
|
3 |
-
import gradio as gr
|
4 |
from transformers import T5Tokenizer, T5ForConditionalGeneration
|
5 |
from torch import cuda
|
|
|
6 |
from utils import convert_ans_to_token, convert_ques_to_token, rotate, convert_token_to_ques, convert_token_to_answer
|
7 |
from modeling import LaTr_for_pretraining, LaTr_for_finetuning, LaTrForVQA
|
8 |
from dataset import load_json_file, get_specific_file, resize_align_bbox, get_tokens_with_boxes, create_features
|
|
|
1 |
# Requirements.txt
|
2 |
import torch
|
|
|
3 |
from transformers import T5Tokenizer, T5ForConditionalGeneration
|
4 |
from torch import cuda
|
5 |
+
import gradio as gr
|
6 |
from utils import convert_ans_to_token, convert_ques_to_token, rotate, convert_token_to_ques, convert_token_to_answer
|
7 |
from modeling import LaTr_for_pretraining, LaTr_for_finetuning, LaTrForVQA
|
8 |
from dataset import load_json_file, get_specific_file, resize_align_bbox, get_tokens_with_boxes, create_features
|