Spaces:
Running
on
Zero
Running
on
Zero
Locutusque
commited on
Commit
•
888022c
1
Parent(s):
2f51011
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import os
|
|
7 |
@spaces.GPU
|
8 |
def load_model(model_name):
|
9 |
return pipeline("text-generation", model=model_name, device_map="auto", torch_dtype=torch.bfloat16, trust_remote_code=True, token=os.environ["token"])
|
10 |
-
@spaces.GPU(
|
11 |
def generate(
|
12 |
model_name,
|
13 |
user_input,
|
|
|
7 |
@spaces.GPU
|
8 |
def load_model(model_name):
|
9 |
return pipeline("text-generation", model=model_name, device_map="auto", torch_dtype=torch.bfloat16, trust_remote_code=True, token=os.environ["token"])
|
10 |
+
@spaces.GPU()
|
11 |
def generate(
|
12 |
model_name,
|
13 |
user_input,
|