Update app.py
Browse files3 unmodified lines4567891047 unmodified lines585960616263643 unmodified linesfrom sentence_transformers import SentenceTransformerimport torchwith open("knowledge.txt", "r", encoding="utf-8") as file:recent = file.read()# opens the text, saves as "file"47 unmodified lines# values of each index number is added to top_chunksreturn top_chunksclient = InferenceClient('Qwen/Qwen2.5-72B-Instruct')#client is where you can change the LLM model!def respond(message,history):if not message.strip():3 unmodified lines45678947 unmodified lines575859606162636465663 unmodified linesfrom sentence_transformers import SentenceTransformerimport torchwith open("knowledge.txt", "r", encoding="utf-8") as file:recent = file.read()# opens the text, saves as "file"47 unmodified lines# values of each index number is added to top_chunksreturn top_chunksclient = InferenceClient(model="Qwen/Qwen2.5-72B-Instruct",token="your_token_here")#client is where you can change the LLM model!def respond(message,history):if not message.strip():
app.py+4-2