Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
jasona7 committed Apr 8, 2024
1 parent be2388b commit 0919774
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file removed chatcve_ui.png
Binary file not shown.
2 changes: 1 addition & 1 deletion fetch_daily_nvd_cves.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
data = json.loads(response.read().decode())

# Open a connection to the SQLite database and create a cursor object
conn = sqlite3.connect('/home/jalloway/ChatCVE/app_patrol.db')
conn = sqlite3.connect('../app_patrol.db')
cursor = conn.cursor()

count = 0
Expand Down
2 changes: 1 addition & 1 deletion frontend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def home():
if request.method == 'POST':
user_input = request.form.get('question')
if user_input:
guardrails = "Do not use sql LIMIT in the results. Only output the query results. Try to make output formatted for human readability if long. "
guardrails = "Do not use sql LIMIT in the results. the tables in the database are nvd_findings and also app_patrol. Output should only be the SL query result."
safe_user_input = guardrails + user_input
response = agent_executor.run(safe_user_input)

Expand Down

0 comments on commit 0919774

Please sign in to comment.