This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import openai | |
| import sys | |
| def askai(param): | |
| """ | |
| Sends the user's question to OpenAI and gets a response. | |
| Parameters: | |
| - param (str): The question from the user. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import sys | |
| import openai | |
| import argparse | |
| import asyncio | |
| import aiohttp | |
| import re | |
| from transformers import GPT2Tokenizer | |
| # Set up OpenAI API credentials |