mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-03 19:57:35 +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
|
||||
response = requests.post(
|
||||
"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())
|
||||
|
||||
# Ask a question
|
||||
response = requests.post(
|
||||
"http://localhost:8000/ask",
|
||||
json={"question": "What are neural networks?"}
|
||||
"http://localhost:8000/ask", json={"question": "What are neural networks?"}
|
||||
)
|
||||
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:
|
||||
```python
|
||||
import logging
|
||||
|
||||
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 os
|
||||
import re
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue