Spaces:
Sleeping
Sleeping
update huggingface_hub
Browse files- appStore/__pycache__/rag.cpython-310.pyc +0 -0
- appStore/rag.py +1 -1
- requirements.txt +2 -1
appStore/__pycache__/rag.cpython-310.pyc
CHANGED
Binary files a/appStore/__pycache__/rag.cpython-310.pyc and b/appStore/__pycache__/rag.cpython-310.pyc differ
|
|
appStore/rag.py
CHANGED
@@ -53,7 +53,7 @@ def run_query(context, label, model_sel_name):
|
|
53 |
client = InferenceClient(model_sel_name, token=hf_token)
|
54 |
|
55 |
# Instantiate ChatCompletion as a generator object (stream is set to True)
|
56 |
-
chat_completion = client.
|
57 |
messages=messages,
|
58 |
stream=True
|
59 |
)
|
|
|
53 |
client = InferenceClient(model_sel_name, token=hf_token)
|
54 |
|
55 |
# Instantiate ChatCompletion as a generator object (stream is set to True)
|
56 |
+
chat_completion = client.chat.completions.create(
|
57 |
messages=messages,
|
58 |
stream=True
|
59 |
)
|
requirements.txt
CHANGED
@@ -5,6 +5,7 @@ spaces==0.17.0
|
|
5 |
pydantic==1.8.2
|
6 |
typer==0.4.0
|
7 |
scikit-learn==1.3.2
|
|
|
8 |
setfit==1.0.1
|
9 |
torch==2.1.0
|
10 |
datasets==2.3.0
|
@@ -15,6 +16,6 @@ numpy==1.22.1
|
|
15 |
pandas==1.4.0
|
16 |
openai==0.27.9
|
17 |
seaborn==0.11.2
|
18 |
-
huggingface-hub==0.
|
19 |
xlsxwriter
|
20 |
plotly.express
|
|
|
5 |
pydantic==1.8.2
|
6 |
typer==0.4.0
|
7 |
scikit-learn==1.3.2
|
8 |
+
git+https://github.com/Wauplin/setfit@dont-use-deprecated-dataset-filter #SetFit source install: Fix 'DatasetFilter' issue: https://github.com/huggingface/setfit/issues/544
|
9 |
setfit==1.0.1
|
10 |
torch==2.1.0
|
11 |
datasets==2.3.0
|
|
|
16 |
pandas==1.4.0
|
17 |
openai==0.27.9
|
18 |
seaborn==0.11.2
|
19 |
+
huggingface-hub==0.24.5
|
20 |
xlsxwriter
|
21 |
plotly.express
|