-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hugging Face API raising error "Uncaught app exception" & "raise Exception("Something went wrong!")" #206
Comments
what I have already done is
but nothing seems to work but it was working fine previously |
same PS D:\chat> python new.py |
are you using this tutorial -> "https://dev.to/codemaker2015/build-llm-powered-chatbot-in-5-minutes-using-hugchat-and-streamlit-2f53" ? |
please fix this!!!! same! |
hey guys! i found a solution! |
waiting for my pull request to get merged |
Please tell us the solution if there is any. |
my pull request should fix this, just waiting for Soulter to create a new release |
Hey guys, I just released a version |
thank you so much for responding quickly! i have my issue fixed! |
Thankyou @Soulter and @kokofixcomputers !! |
No problem
…On May 3, 2024 at 10:44 AM -0700, Areeb Adnan Khan ***@***.***>, wrote:
Thankyou @Soulter and @kokofixcomputers !!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Describe the bug
So I made a chatbot using a public repository and multiple online resources through Hugchat API and used the model "CohereForAI/c4ai-command-r-plus". I then proceeded to host it on streamlit. All was working fine and the prompts that I was giving it worked perfectly. I then commited my code and proceed to do another work. After 6 to 7 hours when I tried the bot it was saying "Exception: Something went wrong!". I looked into my vs code there as error which very precisely resembles the error identified in this post: https://github.com/Soulter/hugging-chat-api/issues/169
To Reproduce
To reproduce this error I am attaching my code here `# Imports
import os
from hugchat import hugchat
from hugchat.login import Login
from dotenv import load_dotenv
Load the environment variables
#load_dotenv()
Load the email and password from the environment variables
EMAIL = ''
PASSWD = ''
Sign in to the HugChat
user = Login(email=EMAIL, passwd=PASSWD)
Function to prepare the query
def prepare_query(user_inputs):
# Initialize the query
query = ""
Function to get the chatbot
def get_chatbot():
Function to get the response from the chatbot
def get_response(user_inputs):
# Get the chatbot
chatbot = get_chatbot()
`
you can enter your own email and password. The error I am receiving is
Same error which was identified in the post.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
The text was updated successfully, but these errors were encountered: