All Questions
Tagged with chatbot python-3.x
153 questions
0
votes
1
answer
79
views
Initializing Hugging Face Transformer restarts program loop
Initializing hugging face transformer causes loops to restart. I have created simple loop which reads text and replies but the loop is restarting new thread when initalizing chatbot pipeline. Minimum ...
0
votes
1
answer
53
views
Trying to create chatbot on M1, vscode. Using chatterbot but getting errors with spacy
Hi I am trying to create a chatbot using chatterbot, any ideas on what I should do regarding the error?
my code:
///this is to just train the bot///
from chatterbot import ChatBot
from chatterbot....
-2
votes
1
answer
349
views
Error during installing chatterbot on mac
I am trying to install chatterbot on my mac but I am getting the following error.
I have already upgraded pip and setuptools
My operating system is macOS Sonoma
running build_ext
building '...
1
vote
0
answers
173
views
Problems with using the most recent version if Tensorflow
I've been wanting to give tensorflow a shot for designing a chatbot. However, guides i've seen feel like they were all using an older version of Tensorflow because the one i'm using is the most recent ...
0
votes
0
answers
612
views
MistralAPIException: Cannot stream response. Status: 400 during creation of a Chatbot using MistralAI API and LangChain
I'm trying to create a Chatbot to talk with web sites using LangChain and MistralAI API.
But I have problems with the MistralAI API, using OpenAI API is working, but is not the same with Mistral.
app....
0
votes
1
answer
89
views
How to turn off repeated response filter for my chatterbot
I am working on making a chatbot with the chatterbot library in python and it was sometimes not responding correctly, I turned on logging and found that it was because it was excluding responses that ...
0
votes
2
answers
272
views
Getting dependency error installing chatterbot
I am trying to create a chatbot using Python. When I run "pip3 install chatterbot" I get the error
ERROR: Some build dependencies for preshed<2.1.0,>=2.0.1 from
https://files....
0
votes
1
answer
256
views
im getting TypeError: '_io.TextIOWrapper' object is not subscriptable on my chat bot
im currently building a chat bot for a project and it showed me an error that i could find nothing helpful about
heres the main function
def AXIS():
knowledge_base:dict = open('knowledge_base.json','...
-1
votes
1
answer
314
views
Chatterbot : wheel==0.41.3 is incompatible with wheel>=0.32.0,<0.33.0
whenever I type
pip install flask spacy chatterbot chatterbot_corpus nltk SpeechRecognition pyttsx3
I get
ERROR: Some build dependencies for preshed<2.1.0,>=2.0.1 from https://files....
-1
votes
2
answers
380
views
How to open a URL in a new tab on the client machine when a button is clicked
hope you are well, I am working on a project where I have a button to click in that text is there, so when I click that button, the URL should open in a new tab in the client machine but it is opening ...
0
votes
1
answer
1k
views
How make a drop-down list in a telegram chat bot with aiogram3
I'm trying to create a drop-down list to select a country. Because the list is very large, I can't use inline keyboard. For this I would like to use a drop-down list like in desktop, mobile, web, etc. ...
3
votes
1
answer
13k
views
ConversationChain with context in langchain
I want to create a chatbot based on langchain. In the first message of the conversation, I want to pass the initial context.
What is the way to do it? I'm struggling with this, because from what I see,...
0
votes
1
answer
427
views
Train Chatbot with only custom knowledge and not general knowledge using ChatGPT API
So now I am coding in Python a chatbot using the ChatGPT API, and the issue that I have is that I want the chatbot to only have custom knowledge that will be trained from a PDF file, and not general ...
0
votes
1
answer
5k
views
Always 500 "Internal server error" when requesting OpenAI API with stream option
For some reason, whenever I do:
response = openai.ChatCompletion.create(
engine="chatgpt",
model="gpt-35-turbo",
messages=[
{"role": "system"...
0
votes
1
answer
101
views
Discord bot in python bug: RuntimeWarning: coroutine 'handle_response' was never awaited
I'm making a Discord bot and got an error. These are my files' code:
main.py
import bot
if __name__ == '__main__':
# Run the bot
bot.run_discord_bot()
bot.py
import discord
import responses
...