ran pre-commit

ran pre-commit
This commit is contained in:
Omar Abdelwahab 2025-09-18 14:03:43 -07:00
parent 875069f535
commit d064c9e99e
2 changed files with 9 additions and 3 deletions

View file

@ -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)
```

View file

@ -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