From a2c50fc5cf092bed8fb65d4514988f4c7e1451f9 Mon Sep 17 00:00:00 2001 From: "l.gabrysiak" Date: Wed, 26 Feb 2025 15:35:02 +0100 Subject: [PATCH] mod gemma-faiss --- gemma-faiss.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gemma-faiss.py b/gemma-faiss.py index 0c38cc4..3c0b68f 100644 --- a/gemma-faiss.py +++ b/gemma-faiss.py @@ -1,3 +1,6 @@ +import os +os.environ["TOKENIZERS_PARALLELISM"] = "false" + import numpy as np import faiss import gradio as gr @@ -59,4 +62,4 @@ def generate_response(query): # 8️⃣ Interfejs Gradio (Open-WebUI) iface = gr.Interface(fn=generate_response, inputs="text", outputs="text") -iface.launch(share=True) # Uruchom interfejs \ No newline at end of file +iface.launch() # Uruchom interfejs \ No newline at end of file