JSONDecodeError: Invalid \uXXXX escape error #488
Labels
component:support
How to do xyz?
status:awaiting user response
Awaiting a response from the author
type:bug
Something isn't working
Description of the bug:
Hi, I am trying to use the Gemini API for Sentiment Analysis, but I am using it on Hindi Language. So, I am loading the model as below -
Model is being loaded as below -
for an Hindi prompt -
{json_data}
You are expert who is good at classifying Twitter tweet sentiments (in Hindi language) into positive/negative/neutral labels.
Help me classify the tweets into positive and negative and neutral. The Hindi tweets are provided between three back ticks.
In your output, just return the JSON code as output - which is provided between three back ticks. Your task is to update the predictions under 'predicted label' in the JSON code.
Please do not make any changes in the JSON code format.
Reproduction Steps
Best regards
Actual vs expected behavior:
Expected Result
These columns shud be filled with 0 or 1 as per the text
Actual Result
it instead throws below error
Any other information you'd like to share?
Below colab file shows the complete code -
https://colab.research.google.com/drive/1CIx-it1RiUZRIld7aCRYkAQBW8Lq1uRb?usp=sharing
The text was updated successfully, but these errors were encountered: