refactor: summarize error message without line number

This commit is contained in:
Florian Hönicke
2023-05-27 17:08:11 +02:00
parent 035befcfb0
commit 6a91649488
3 changed files with 3 additions and 5 deletions

View File

@@ -52,6 +52,7 @@ BLACKLISTED_PACKAGES = [
'tika', # because it needs java
'clearbit', # because of installation issues on latest version
'pyttsx3', # after engine.save_to_file(summarized_text, "summarized_audio.wav"); engine.runAndWait() "summarized_audio.wav" does not exist
'pypng', # if we provide access to the documentation all should be fine but for now it is too hard to use since the import is png
]
UNNECESSARY_PACKAGES = [
'jinja2', 'werkzeug', 'flask', 'flask_restful', 'http.server', 'flask_json', 'flask_cors', 'fastapi', 'uvicorn', 'starlette' # because the wrappers are used instead

View File

@@ -41,10 +41,7 @@ def test_generation_level_1(microservice_dir, mock_input_sequence):
"""
os.environ['VERBOSE'] = 'true'
generator = Generator(
'''Input is a tweet that might contain passive aggressive language. The output is the positive version of that tweet.
Example tweet:
\'When your coworker microwaves fish in the break room... AGAIN. 🐟🤢
But hey, at least SOMEONE's enjoying their lunch. #officelife\'''',
'''Input is a tweet that contains passive aggressive language. The output is the positive version of that tweet.''',
str(microservice_dir),
'gpt-3.5-turbo',
# self_healing=False,

View File

@@ -9,5 +9,5 @@ def test_web_search():
def test_image_search():
results = search_images("jina", 10)
assert len(results) == 10
assert len(results) >= 1
assert results[0].startswith("http")