Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
|
| 30 |
|
| 31 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
| 32 |
|
| 33 |
-
model_id = "
|
| 34 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 35 |
model = AutoModelForCausalLM.from_pretrained(
|
| 36 |
model_id,
|
|
@@ -40,7 +40,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 40 |
model.eval()
|
| 41 |
|
| 42 |
|
| 43 |
-
@spaces.GPU(duration=
|
| 44 |
def generate(
|
| 45 |
message: str,
|
| 46 |
chat_history: list[dict],
|
|
|
|
| 30 |
|
| 31 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
| 32 |
|
| 33 |
+
model_id = "prithivMLmods/Llama-Express.1"
|
| 34 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 35 |
model = AutoModelForCausalLM.from_pretrained(
|
| 36 |
model_id,
|
|
|
|
| 40 |
model.eval()
|
| 41 |
|
| 42 |
|
| 43 |
+
@spaces.GPU(duration=60)
|
| 44 |
def generate(
|
| 45 |
message: str,
|
| 46 |
chat_history: list[dict],
|