Spaces:
Running
on
Zero
Running
on
Zero
app.py
CHANGED
@@ -16,7 +16,7 @@ model_options = {
|
|
16 |
"Foundation-Sec-8B": pipeline("text-generation", model="fdtn-ai/Foundation-Sec-8B"),
|
17 |
}
|
18 |
|
19 |
-
|
20 |
def generate_text_local(model_pipeline, prompt):
|
21 |
"""Local text generation"""
|
22 |
try:
|
|
|
16 |
"Foundation-Sec-8B": pipeline("text-generation", model="fdtn-ai/Foundation-Sec-8B"),
|
17 |
}
|
18 |
|
19 |
+
@spaces.GPU
|
20 |
def generate_text_local(model_pipeline, prompt):
|
21 |
"""Local text generation"""
|
22 |
try:
|