ikraamkb commited on
Commit
50e9e95
·
verified ·
1 Parent(s): a2d8132

Update Visualisation/app.py

Browse files
Files changed (1) hide show
  1. Visualisation/app.py +2 -2
Visualisation/app.py CHANGED
@@ -9,9 +9,9 @@ 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",device_map="auto",torch_dtype=torch.float16)
13
 
14
- image_captioner = pipeline("image-to-text", model="Salesforce/blip2-opt-2.7b",device_map="auto",torch_dtype=torch.float16 )
15
 
16
  # ✅ Load T5 Model (ensure correct architecture)
17
  model_name = "google/t5-small" # Change to the correct T5 model if needed
 
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
+ image_captioner = pipeline("image-to-text", model="Salesforce/blip2-opt-2.7b",torch_dtype=torch.float16 )
15
 
16
  # ✅ Load T5 Model (ensure correct architecture)
17
  model_name = "google/t5-small" # Change to the correct T5 model if needed