Spaces:
Paused
Paused
add snapshot download
Browse files
app.py
CHANGED
@@ -9,8 +9,13 @@ import numpy as np
|
|
9 |
from mistral_common.protocol.instruct.messages import UserMessage, TextChunk, ImageChunk
|
10 |
from mistral_common.protocol.instruct.request import ChatCompletionRequest
|
11 |
from mistral_common.tokens.tokenizers.mistral import MistralTokenizer
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
-
# Load model parameters and tokenizer configuration
|
14 |
with open('PARAMS.json', 'r') as f:
|
15 |
params = json.load(f)
|
16 |
|
|
|
9 |
from mistral_common.protocol.instruct.messages import UserMessage, TextChunk, ImageChunk
|
10 |
from mistral_common.protocol.instruct.request import ChatCompletionRequest
|
11 |
from mistral_common.tokens.tokenizers.mistral import MistralTokenizer
|
12 |
+
from huggingface_hub import snapshot_download
|
13 |
+
import Spaces
|
14 |
+
|
15 |
+
|
16 |
+
# Download model files
|
17 |
+
model_path = snapshot_download(repo_id="mistral-community/pixtral-12b-240910")
|
18 |
|
|
|
19 |
with open('PARAMS.json', 'r') as f:
|
20 |
params = json.load(f)
|
21 |
|