Spaces:
Runtime error
Runtime error
Update Visualisation/app.py
Browse files- 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",
|
13 |
|
14 |
-
image_captioner = pipeline("image-to-text", model="Salesforce/blip2-opt-2.7b",
|
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
|