Skip to content

Commit

Permalink
Final tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
markbotterill committed May 24, 2024
1 parent 3998d17 commit dd727a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/scripts/hubgpt_eval_automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import requests
from slack_sdk import WebClient

CSV_PATH = "/app/scripts/hubgpt_eval.csv"
CSV_PATH = "hubgpt_eval.csv"

def create_new_chat_session(danswer_url: str, api_key: str | None) -> int:
headers = {"Authorization": f"Bearer {api_key}"} if api_key else None
Expand Down Expand Up @@ -84,9 +84,10 @@ def upload_to_slack(filename, channel_id):
for num, query in enumerate(queries_list):
print(f"Query {num+1}/{len(queries_list)}: {query}")
response = process_question(
danswer_url=os.getenv("WEB_DOMAIN"), question=query, api_key=None
danswer_url="https://hubgpt.idinsight.io", question=query, api_key=None
)
responses.append(response)
print(response)
print("\n ------------------- \n")

today_str = str(datetime.date.today())
Expand Down

0 comments on commit dd727a1

Please sign in to comment.