AxL95 commited on
Commit
6a482de
·
verified ·
1 Parent(s): d82f290

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 || "votre_token_ici");
15
- console.log(hfClient);
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 = () => {