Spaces:
Build error
Build error
Commit
·
27ba167
1
Parent(s):
0129317
Updated weaviate.Client ()
Browse files# Initialize Weaviate client for the embedded instance
client = weaviate.Client(
embedded_options=EmbeddedOptions()
)
app.py
CHANGED
|
@@ -4,14 +4,16 @@ import pandas as pd
|
|
| 4 |
from io import StringIO
|
| 5 |
from transformers import AutoTokenizer, AutoModelForTableQuestionAnswering
|
| 6 |
import numpy as np
|
| 7 |
-
import weaviate
|
| 8 |
|
| 9 |
# Initialize TAPAS model and tokenizer
|
| 10 |
tokenizer = AutoTokenizer.from_pretrained("google/tapas-large-finetuned-wtq")
|
| 11 |
model = AutoModelForTableQuestionAnswering.from_pretrained("google/tapas-large-finetuned-wtq")
|
| 12 |
|
| 13 |
# Initialize Weaviate client for the embedded instance
|
| 14 |
-
client = weaviate.Client(
|
|
|
|
|
|
|
| 15 |
|
| 16 |
# Function to ingest data into Weaviate
|
| 17 |
def ingest_data_to_weaviate(dataframe):
|
|
|
|
| 4 |
from io import StringIO
|
| 5 |
from transformers import AutoTokenizer, AutoModelForTableQuestionAnswering
|
| 6 |
import numpy as np
|
| 7 |
+
import weaviate import EmbeddedOptions
|
| 8 |
|
| 9 |
# Initialize TAPAS model and tokenizer
|
| 10 |
tokenizer = AutoTokenizer.from_pretrained("google/tapas-large-finetuned-wtq")
|
| 11 |
model = AutoModelForTableQuestionAnswering.from_pretrained("google/tapas-large-finetuned-wtq")
|
| 12 |
|
| 13 |
# Initialize Weaviate client for the embedded instance
|
| 14 |
+
client = weaviate.Client(
|
| 15 |
+
embedded_options=EmbeddedOptions()
|
| 16 |
+
)
|
| 17 |
|
| 18 |
# Function to ingest data into Weaviate
|
| 19 |
def ingest_data_to_weaviate(dataframe):
|