Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswebb09 committed Jan 2, 2024
1 parent 5dc49b4 commit 40ca8f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DirectReport/browserview/dashboard/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def dashboard_reports_update():
repo_data.append(repo["name"])
raw_data = googleAi.get_data_from(prompt)
begin, end = raw_data.find('{'), raw_data.rfind('}')
filtered_str = raw_data[begin : end + 1]
filtered_str = raw_data[begin: end + 1]
response_data = json.loads(filtered_str)
response_data["broad_categories"] = {
"debug_info": 16,
Expand Down
3 changes: 2 additions & 1 deletion DirectReport/browserview/main/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ def generateemail():
@bp.route("/repo/<reponame>", methods=['GET'])
def repo(reponame=None):
client = GithubClient()
repo = []
try:
repo = client.get_repo_issues(current_user.github_username, reponame)
except Exception as e:
repo = []
print(e)
return render_template('team/team.html', title='Team', data=repo)
2 changes: 1 addition & 1 deletion DirectReport/browserview/services/huggingface_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
class HuggingFaceClient:
def query(self, payload):
API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-2-7b-chat-hf"
headers = {f"Authorization": f"Bearer {appsecrets.MISTRAL_API_KEY}"}
headers = {"Authorization": f"Bearer {appsecrets.MISTRAL_API_KEY}"}
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()

0 comments on commit 40ca8f5

Please sign in to comment.