nyasukun commited on
Commit
4e1363d
·
1 Parent(s): 3119f87
Files changed (1) hide show
  1. app.py +2 -2
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