Spaces:
Running
on
Zero
Running
on
Zero
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
-
from transformers import pipeline
|
4 |
import torch
|
5 |
import logging
|
6 |
|
@@ -13,7 +13,7 @@ logger = logging.getLogger(__name__)
|
|
13 |
|
14 |
# Predefined list of models to compare (can be expanded)
|
15 |
model_options = {
|
16 |
-
"Foundation-Sec-8B": pipeline("text-generation", model="fdtn-ai/Foundation-Sec-8B"),
|
17 |
}
|
18 |
|
19 |
@spaces.GPU
|
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
+
from transformers import pipeline, AutoModelForCausalLM
|
4 |
import torch
|
5 |
import logging
|
6 |
|
|
|
13 |
|
14 |
# Predefined list of models to compare (can be expanded)
|
15 |
model_options = {
|
16 |
+
"Foundation-Sec-8B": pipeline("text-generation", model="fdtn-ai/Foundation-Sec-8B", torch_dtype=torch.bfloat16),
|
17 |
}
|
18 |
|
19 |
@spaces.GPU
|