You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been working with chromadb and vicinity for RAG services and when I try to run them on Windows at certain point the connection is broken with no message. But the same code works perfectly on Ubuntu.
Any clue ? Maybe I'm missing any configuration param.
Thank you for your time!
import gradio as gr
from datasets import load_dataset
from semhash import SemHash
async def generate():
# Load a dataset to deduplicate
dataset = load_dataset("ag_news", split="train")
# Convert the dataset to a list of dictionaries
records = [dict(row) for row in dataset]
# Initialize a SemHash instance with the column(s) to deduplicate
semhash = SemHash.from_records(records=records, columns=["text"]) # it stop working at this line
# Deduplicate the texts
deduplicated_records = semhash.self_deduplicate().deduplicated
print(deduplicated_records[0])
def gradio_app():
with gr.Blocks() as app:
submit_button = gr.Button("Submit")
submit_button.click(generate,
show_progress="full")
return app
if __name__ == "__main__":
app = gradio_app()
app.queue().launch(debug=True)
Here you are @abidlabs Please keep in mind that the instalation of semhash is needed for this example. Just pip install semhash
Let me know if you need something else. And thank you for your time in advance.
Describe the bug
I have been working with chromadb and vicinity for RAG services and when I try to run them on Windows at certain point the connection is broken with no message. But the same code works perfectly on Ubuntu.
Any clue ? Maybe I'm missing any configuration param.
Thank you for your time!
Have you searched existing issues? 🔎
Reproduction
Example code I'm running inside a gradio app:
MinishLab/semhash#48 (comment)
Screenshot
No response
Logs
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: