Analyze a ChatGPT discussion
#3
by
samuelrince
- opened
Two options :
- Copy-paste the URL of a shared discussion with ChatGPT
- Input an OpenAI key, start a chat UI and display the impacts within the conversation
Option 2. is probably better in another HF Spaces. Maybe "ecologits-chat"?
For option 1, first version released today :
- Take as an input a chatgpt.share URL
- Scrape the page to extract the output text
- Tokenize it with tiktoken
- Pass the amount of tokens as an input for ecologits impacts calculation
Could be improve with :
- a cleaner scrapping
- the possibility to share other LLMs chats
- eventually and to avoid approximations, a filter on available models to assess impacts based on the URL (ex : if this is a chatgpt.share URL, then only show openai models)