mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 04:04:14 +00:00
ran pre-commit
ran pre-commit
This commit is contained in:
parent
875069f535
commit
d064c9e99e
2 changed files with 9 additions and 3 deletions
|
@ -123,14 +123,13 @@ import requests
|
||||||
# Process a document
|
# Process a document
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
"http://localhost:8000/process",
|
"http://localhost:8000/process",
|
||||||
json={"source": "https://en.wikipedia.org/wiki/Deep_learning"}
|
json={"source": "https://en.wikipedia.org/wiki/Deep_learning"},
|
||||||
)
|
)
|
||||||
print(response.json())
|
print(response.json())
|
||||||
|
|
||||||
# Ask a question
|
# Ask a question
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
"http://localhost:8000/ask",
|
"http://localhost:8000/ask", json={"question": "What are neural networks?"}
|
||||||
json={"question": "What are neural networks?"}
|
|
||||||
)
|
)
|
||||||
print(response.json())
|
print(response.json())
|
||||||
|
|
||||||
|
@ -180,6 +179,7 @@ To change the model, edit the `model_id` parameter in the respective files.
|
||||||
To enable verbose logging, add this to the beginning of either file:
|
To enable verbose logging, add this to the beginning of either file:
|
||||||
```python
|
```python
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# This source code is licensed under the terms described in the LICENSE file in
|
||||||
|
# the root directory of this source tree.
|
||||||
|
|
||||||
import html
|
import html
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue