Skip to content

Add DocumentQuestionAnswering Pipeline Widget#305

Closed
ankrgyl wants to merge 2 commits intohuggingface:mainfrom
impira:widget
Closed

Add DocumentQuestionAnswering Pipeline Widget#305
ankrgyl wants to merge 2 commits intohuggingface:mainfrom
impira:widget

Conversation

@ankrgyl
Copy link
Copy Markdown
Collaborator

@ankrgyl ankrgyl commented Sep 15, 2022

This pretty much follows the implementation of the VisualQuestionAnswering widget. Ideally, we'd allow this to accept richer datatypes as well (e.g. PDFs) in the future, but I think it's an ok starting point for now.

@ankrgyl
Copy link
Copy Markdown
Collaborator Author

ankrgyl commented Sep 15, 2022

CC @Narsil @mishig25

@ankrgyl
Copy link
Copy Markdown
Collaborator Author

ankrgyl commented Sep 15, 2022

NOTE: I have not tested this since the inference API is not enabled yet.

"visual-question-answering": VisualQuestionAnsweringWidget,
"reinforcement-learning": ReinforcementLearningWidget,
"zero-shot-classification": ZeroShotClassificationWidget,
"document-question-answering": DocumentQuestionAnsweringWidget,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"document-question-answering": DocumentQuestionAnsweringWidget,
"document-question-answering": DocumentQuestionAnsweringWidget,

(tabs, not spaces)

},
],
},
},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
},
},

import type { ModelData } from "../lib/interfaces/Types";

const models: ModelData[] = [
{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{
{

@mishig25
Copy link
Copy Markdown
Collaborator

closing in favour for #306 so that github CI can run

@mishig25 mishig25 closed this Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants