

I’m using Windows 10 and followed all your instructions very carefully. ImportError: DLL load failed while importing _cext: The specified module could not be found. Return _bootstrap._gcd_import(name, package, level) Module = importlib.import_module(modname)įile “C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\importlib\_init_.py”, line 126, in import_module Can you please helpįile “C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\gradio\_init_.py”, line 3, inįile “C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\gradio\components\_init_.py”, line 1, inįrom _image import AnnotatedImageįile “C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\gradio\components\annotated_image.py”, line 12, inįile “C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\gradio\utils.py”, line 37, inįile “C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\matplotlib\_init_.py”, line 242, inįile “C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\matplotlib\_init_.py”, line 236, in _check_versions I have done everything as per the procedure suggested. Make sure to replace the “ Your API key” text with your own API key generated above. Gr.Interface(fn=chatbot, inputs=inputs, outputs=outputs, title="AI Chatbot",Ģ. Outputs = gr.outputs.Textbox(label="Reply") Inputs = gr.inputs.Textbox(lines=7, label="Chat with AI")
#Discord chatbot maker code
Thanks to armrrs on GitHub, I have repurposed his code and implemented the Gradio interface as well. First, open Notepad++ (or your choice of code editor) and paste the below code. As for the user interface, we are using Gradio to create a simple web interface that will be available both locally and on the web.ġ.

It’s also very cost-effective, more responsive than earlier models, and remembers the context of the conversation. It’s even more powerful than Davinci and has been trained up to September 2021. For this, we are using OpenAI’s latest “ gpt-3.5-turbo” model, which powers GPT-3.5. Build Your Own AI Chatbot With ChatGPT API and Gradioįinally, it’s time to deploy the AI chatbot.
