Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,10 @@ import os
|
|
13 |
|
14 |
def process_input(urls, question):
|
15 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = 'HUGGINGFACEHUB_API_TOKEN'
|
16 |
-
|
|
|
|
|
|
|
17 |
# Convert string of URLs to list
|
18 |
urls_list = urls.split("\n")
|
19 |
docs = [WebBaseLoader(url).load() for url in urls_list]
|
|
|
13 |
|
14 |
def process_input(urls, question):
|
15 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = 'HUGGINGFACEHUB_API_TOKEN'
|
16 |
+
|
17 |
+
repo_id = "mistralai/Mistral-7B-Instruct-v0.2"
|
18 |
+
model_local = HuggingFaceEndpoint(repo_id=repo_id, max_length=128, temperature=0.5, token=HUGGINGFACEHUB_API_TOKEN
|
19 |
+
)
|
20 |
# Convert string of URLs to list
|
21 |
urls_list = urls.split("\n")
|
22 |
docs = [WebBaseLoader(url).load() for url in urls_list]
|