Update frontend/src/components/ChatInterface.jsx
Browse files
frontend/src/components/ChatInterface.jsx
CHANGED
@@ -11,8 +11,8 @@ const ChatInterface = ({ messages = [], setMessages = () => {}, onMessageSent =
|
|
11 |
const textareaRef = useRef(null);
|
12 |
|
13 |
// Initialisation du client Hugging Face (idéalement dans un .env)
|
14 |
-
const hfClient = new InferenceClient(process.env.REACT_APP_HF_TOKEN || "
|
15 |
-
console.log(
|
16 |
const isMarkdown = (text) => /[#*_>`-]/.test(text);
|
17 |
|
18 |
const scrollToBottom = () => {
|
|
|
11 |
const textareaRef = useRef(null);
|
12 |
|
13 |
// Initialisation du client Hugging Face (idéalement dans un .env)
|
14 |
+
const hfClient = new InferenceClient(process.env.REACT_APP_HF_TOKEN || "token");
|
15 |
+
console.log(process.env.REACT_APP_HF_TOKEN);
|
16 |
const isMarkdown = (text) => /[#*_>`-]/.test(text);
|
17 |
|
18 |
const scrollToBottom = () => {
|