Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,11 @@ from huggingface_hub import InferenceClient
|
|
2 |
import gradio as gr
|
3 |
from langchain_community.tools import DuckDuckGoSearchRun
|
4 |
|
5 |
-
|
|
|
|
|
|
|
|
|
6 |
|
7 |
# Initialize DuckDuckGo search tool
|
8 |
duckduckgo_search = DuckDuckGoSearchRun()
|
|
|
2 |
import gradio as gr
|
3 |
from langchain_community.tools import DuckDuckGoSearchRun
|
4 |
|
5 |
+
API_URL = "https://api-inference.huggingface.co/models/"
|
6 |
+
|
7 |
+
client = InferenceClient(
|
8 |
+
"mistralai/Mistral-7B-Instruct-v0.1"
|
9 |
+
)
|
10 |
|
11 |
# Initialize DuckDuckGo search tool
|
12 |
duckduckgo_search = DuckDuckGoSearchRun()
|