Task is not specified error
#1
by
ThrowbackJM
- opened
The following code throws an error, which might be due to a missing task on your model card.
[Code]
repo_id="oliverwang15/FinGPT_ChatGLM2_Sentiment_Instruction_LoRA_FT"
llm = HuggingFaceHub(
repo_id=repo_id, model_kwargs={"temperature": 0.5}
)
[Error Message]
ValidationError: 1 validation error for HuggingFaceHub
root
Task not specified in the repository. Please add it to the model card using pipeline_tag (https://huggingface.co/docs#how-is-a-models-type-of-inference-api-and-widget-determined) (type=value_error)