Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from huggingface_hub import InferenceClient
|
| 3 |
from langchain_core.vectorstores import InMemoryVectorStore
|
| 4 |
from langchain.chains import RetrievalQA
|
| 5 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|
|
@@ -9,7 +8,6 @@ from langchain_groq import ChatGroq
|
|
| 9 |
"""
|
| 10 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
| 11 |
"""
|
| 12 |
-
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
| 13 |
|
| 14 |
model_name = "llama-3.3-70b-versatile"
|
| 15 |
groq_api_key = "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"
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
from langchain_core.vectorstores import InMemoryVectorStore
|
| 3 |
from langchain.chains import RetrievalQA
|
| 4 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|
|
|
|
| 8 |
"""
|
| 9 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
| 10 |
"""
|
|
|
|
| 11 |
|
| 12 |
model_name = "llama-3.3-70b-versatile"
|
| 13 |
groq_api_key = "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"
|