Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ class BasicAgent:
|
|
26 |
|
27 |
os.environ["HUGGINGFACEHUB_API_TOKEN"] = "hf_abcdefghijklmnopqrstuvwxyz"
|
28 |
login(api_token)
|
29 |
-
|
30 |
self.model = InferenceClient("mistralai/Mistral-7B-Instruct-v0.1")
|
31 |
self.tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1") # Initialize tokenizer
|
32 |
SYSTEM_PROMPT = """You are a general AI assistant. I will ask you a question. Report your thoughts, and
|
|
|
26 |
|
27 |
os.environ["HUGGINGFACEHUB_API_TOKEN"] = "hf_abcdefghijklmnopqrstuvwxyz"
|
28 |
login(api_token)
|
29 |
+
print(f"Using API Token: {api_token}")
|
30 |
self.model = InferenceClient("mistralai/Mistral-7B-Instruct-v0.1")
|
31 |
self.tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1") # Initialize tokenizer
|
32 |
SYSTEM_PROMPT = """You are a general AI assistant. I will ask you a question. Report your thoughts, and
|