kazimsayed
commited on
Commit
·
1010618
1
Parent(s):
46e2fd5
Update app.py
Browse files
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 |
-
|
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:'
|