Spaces:
Sleeping
Sleeping
Lillian McAboy commited on
Commit ·
8a8a8cf
1
Parent(s): 2786b92
mahhh
Browse files
app.py
CHANGED
|
@@ -69,6 +69,7 @@ def get_spans_local(formality_name, original_text, new_text):
|
|
| 69 |
))
|
| 70 |
length_so_far += len(token)
|
| 71 |
return spans
|
|
|
|
| 72 |
|
| 73 |
|
| 74 |
def get_highlights_api(prompt, doc, updated_doc):
|
|
@@ -78,5 +79,3 @@ def get_highlights_api(prompt, doc, updated_doc):
|
|
| 78 |
import requests
|
| 79 |
response = requests.get("https://tools.kenarnold.org/api/highlights", params=dict(prompt=prompt, doc=doc, updated_doc=updated_doc))
|
| 80 |
return response.json()['highlights']
|
| 81 |
-
|
| 82 |
-
print(spans)
|
|
|
|
| 69 |
))
|
| 70 |
length_so_far += len(token)
|
| 71 |
return spans
|
| 72 |
+
print(spans)
|
| 73 |
|
| 74 |
|
| 75 |
def get_highlights_api(prompt, doc, updated_doc):
|
|
|
|
| 79 |
import requests
|
| 80 |
response = requests.get("https://tools.kenarnold.org/api/highlights", params=dict(prompt=prompt, doc=doc, updated_doc=updated_doc))
|
| 81 |
return response.json()['highlights']
|
|
|
|
|
|