mod gemma-faiss

This commit is contained in:
l.gabrysiak 2025-02-26 15:35:02 +01:00
parent a556bad96c
commit a2c50fc5cf
1 changed files with 4 additions and 1 deletions

View File

@ -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
iface.launch() # Uruchom interfejs