mod gemma-faiss
This commit is contained in:
parent
a556bad96c
commit
a2c50fc5cf
|
|
@ -1,3 +1,6 @@
|
||||||
|
import os
|
||||||
|
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import faiss
|
import faiss
|
||||||
import gradio as gr
|
import gradio as gr
|
||||||
|
|
@ -59,4 +62,4 @@ def generate_response(query):
|
||||||
# 8️⃣ Interfejs Gradio (Open-WebUI)
|
# 8️⃣ Interfejs Gradio (Open-WebUI)
|
||||||
iface = gr.Interface(fn=generate_response, inputs="text", outputs="text")
|
iface = gr.Interface(fn=generate_response, inputs="text", outputs="text")
|
||||||
|
|
||||||
iface.launch(share=True) # Uruchom interfejs
|
iface.launch() # Uruchom interfejs
|
||||||
Loading…
Reference in New Issue