Hieu-Pham commited on
Commit
24074bc
1 Parent(s): 9e8f62c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ import torch
5
 
6
  tokenizer = AutoTokenizer.from_pretrained("Hieu-Pham/Llama2-7B-QLoRA-cooking-text-gen-merged")
7
 
8
- stop_token_ids = tokenizer.convert_tokens_to_ids(["\n", "#", "\\", "`", "###", "##", "Question", "Comment", "Answer"])
9
 
10
  # define custom stopping criteria object
11
  class StopOnTokens(StoppingCriteria):
@@ -43,7 +43,7 @@ demo = gr.Interface(
43
  predict,
44
  inputs=[gr.Textbox(lines=2, placeholder="Please provide your question", label="Question"), gr.Textbox(lines=2, placeholder="Please provide your context", label="Context")],
45
  outputs=gr.Textbox(lines=2, placeholder="Answers...", label="Output"),
46
- title="Question Answering",
47
  )
48
 
49
  demo.launch()
 
5
 
6
  tokenizer = AutoTokenizer.from_pretrained("Hieu-Pham/Llama2-7B-QLoRA-cooking-text-gen-merged")
7
 
8
+ stop_token_ids = tokenizer.convert_tokens_to_ids(["\n", "#", "\\", "`", "###", "##", "Question", "Comment", "Answer", "Context"])
9
 
10
  # define custom stopping criteria object
11
  class StopOnTokens(StoppingCriteria):
 
43
  predict,
44
  inputs=[gr.Textbox(lines=2, placeholder="Please provide your question", label="Question"), gr.Textbox(lines=2, placeholder="Please provide your context", label="Context")],
45
  outputs=gr.Textbox(lines=2, placeholder="Answers...", label="Output"),
46
+ title="Cooking Recipe MRC",
47
  )
48
 
49
  demo.launch()