ikraamkb commited on
Commit
8178e3f
·
verified ·
1 Parent(s): 38eba8d

Update Visualisation/app.py

Browse files
Files changed (1) hide show
  1. Visualisation/app.py +1 -2
Visualisation/app.py CHANGED
@@ -8,11 +8,10 @@ import torch
8
  app = FastAPI()
9
 
10
  table_analyzer = pipeline("table-question-answering", model="google/tapas-base")
11
-
12
  user_input_processor = pipeline("text-generation", model="tiiuae/falcon-7b-instruct",torch_dtype=torch.float16)
13
 
14
  # ✅ Load T5 Model (ensure correct architecture)
15
- model_name = "google/t5-small" # Change to the correct T5 model if needed
16
  tokenizer = AutoTokenizer.from_pretrained(model_name)
17
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
18
 
 
8
  app = FastAPI()
9
 
10
  table_analyzer = pipeline("table-question-answering", model="google/tapas-base")
 
11
  user_input_processor = pipeline("text-generation", model="tiiuae/falcon-7b-instruct",torch_dtype=torch.float16)
12
 
13
  # ✅ Load T5 Model (ensure correct architecture)
14
+ model_name = "google-t5/t5-small" # Change to the correct T5 model if needed
15
  tokenizer = AutoTokenizer.from_pretrained(model_name)
16
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
17