mianoemm commited on
Commit
886f749
·
verified ·
1 Parent(s): 2ce2cd5

two time's the charm

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -3,7 +3,6 @@ import gradio as gr
3
  from huggingface_hub import InferenceClient
4
  client = InferenceClient(model="Qwen/Qwen2.5-7B-Instruct", token=os.environ.get("HF"))
5
  import os
6
- !pip install -q sentence-transformers
7
  from sentence_transformers import SentenceTransformer
8
  import torch
9
 
@@ -21,7 +20,6 @@ def preprocess_text(text):
21
  return cleaned_chunks
22
  cleaned_chunks = preprocess_text(knowledge_text)
23
 
24
- =
25
  model = SentenceTransformer('all-MiniLM-L6-v2')
26
 
27
  def create_embeddings(text_chunks):
 
3
  from huggingface_hub import InferenceClient
4
  client = InferenceClient(model="Qwen/Qwen2.5-7B-Instruct", token=os.environ.get("HF"))
5
  import os
 
6
  from sentence_transformers import SentenceTransformer
7
  import torch
8
 
 
20
  return cleaned_chunks
21
  cleaned_chunks = preprocess_text(knowledge_text)
22
 
 
23
  model = SentenceTransformer('all-MiniLM-L6-v2')
24
 
25
  def create_embeddings(text_chunks):