Skip to content

extreamly basic implimation of the roberta-base-squad2 using the question-answering transformers pipeline. This is very rushed.

License

Notifications You must be signed in to change notification settings

Temmie-Flakes/Simple_Quote_Question_Answering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A rushed implementation and UI of question-answering models. currently only tested on deepset/roberta-base-squad2

quick install (windows):

  1. download this repo as a zip or using Git.
  2. download and install python 3.10.6 (recommended) and add to PATH (untested on later versions including 3.11.3)
  3. run Install.bat and wait for it to finish and say Press any key to continue . . .
  4. run RunBaseModel.bat

how to use:

  1. put the question in the question box and the context in the context box.
  2. hit "Do Stuff"

you can add the flag --repo-id [hugging face repo name] line in the batch file to use a different model other then deepset/roberta-base-squad2.

Notes:

  • If you don't have a cuda enabled GPU, edit RunBaseModel.bat and change:
    venv\Scripts\python.exe Open_WebUI.py --cache_dir "modelsCache"
    to:
    venv\Scripts\python.exe Open_WebUI.py --cache_dir "modelsCache" --device "cpu"

Todo:

  • Fix everything

About

extreamly basic implimation of the roberta-base-squad2 using the question-answering transformers pipeline. This is very rushed.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published