Vineedhar commited on
Commit
0afc69c
1 Parent(s): 98d0911

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ from time import perf_counter
2
  import streamlit as st
3
  from transformers import pipeline, AutoModelForSequenceClassification, AutoTokenizer, GenerationConfig
4
 
5
- def formatted_train(input,output)->str:
6
- return f"<|im_start|>user\n{input}|im_end|>\n|im_start|>assistant\n{output}<|im_end|>\n"
7
 
8
  def generate_response(user_input):
9
  prompt = formatted_prompt(user_input)
 
2
  import streamlit as st
3
  from transformers import pipeline, AutoModelForSequenceClassification, AutoTokenizer, GenerationConfig
4
 
5
+ def formatted_prompt(input)-> str:
6
+ return f"<|im_start|>user\n{input}<|im_end|>\n<|im_start|>assistant:"
7
 
8
  def generate_response(user_input):
9
  prompt = formatted_prompt(user_input)