kazimsayed commited on
Commit
1010618
·
1 Parent(s): 46e2fd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -5,8 +5,7 @@ import gradio as gr
5
  tokenizer = AutoTokenizer.from_pretrained("docto/Docto-Bot")
6
  model = AutoModelForCausalLM.from_pretrained("docto/Docto-Bot")
7
  special_token = '<|endoftext|>'
8
- spacy.load("en_core_web_sm")
9
- gf = Gramformer(models = 1, use_gpu=False) # 1=corrector, 2=detector
10
 
11
  def get_reply(userinput):
12
  prompt_text = f'Question: {userinput}\nAnswer:'
 
5
  tokenizer = AutoTokenizer.from_pretrained("docto/Docto-Bot")
6
  model = AutoModelForCausalLM.from_pretrained("docto/Docto-Bot")
7
  special_token = '<|endoftext|>'
8
+
 
9
 
10
  def get_reply(userinput):
11
  prompt_text = f'Question: {userinput}\nAnswer:'