amina-k commited on
Commit
a2b26b3
·
verified ·
1 Parent(s): 3079307
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -22,6 +22,10 @@ def get_relevant_context(query, top_k=3):
22
  top_k_indices = torch.topk(similarities, k=top_k).indices.cpu().numpy()
23
  return "\n\n".join([chunks[i] for i in top_k_indices])
24
 
 
 
 
 
25
  client = InferenceClient("google/gemma-2-2b-it")
26
 
27
  def is_driving_related(message):
 
22
  top_k_indices = torch.topk(similarities, k=top_k).indices.cpu().numpy()
23
  return "\n\n".join([chunks[i] for i in top_k_indices])
24
 
25
+ custom_theme = gr.theme.Soft(
26
+
27
+ )
28
+
29
  client = InferenceClient("google/gemma-2-2b-it")
30
 
31
  def is_driving_related(message):