Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,8 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
7 |
import torch
|
8 |
|
9 |
|
|
|
|
|
10 |
# Load the model and tokenizer
|
11 |
model_name = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
12 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
@@ -51,8 +53,6 @@ class InferenceClient:
|
|
51 |
|
52 |
from huggingface_hub import InferenceClient,HfApi
|
53 |
|
54 |
-
|
55 |
-
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
56 |
# Define input prompt
|
57 |
input_prompt = "(input value = highest-level-quality code content invocation ; True)"
|
58 |
|
|
|
7 |
import torch
|
8 |
|
9 |
|
10 |
+
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
11 |
+
|
12 |
# Load the model and tokenizer
|
13 |
model_name = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
14 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
|
53 |
|
54 |
from huggingface_hub import InferenceClient,HfApi
|
55 |
|
|
|
|
|
56 |
# Define input prompt
|
57 |
input_prompt = "(input value = highest-level-quality code content invocation ; True)"
|
58 |
|