nafisneehal commited on
Commit
a6831cd
·
verified ·
1 Parent(s): 9d8332a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -36,13 +36,10 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
36
  # Define prompt structure (update if necessary for your model)
37
  alpaca_prompt = "{instruction} {input} {output}"
38
 
39
- instruction = "Chat with me like Chandler"
40
-
41
-
42
  @spaces.GPU # Use GPU provided by Hugging Face Spaces if available
43
  def generate_response(user_input, chat_history):
44
- instruction = instruction # Treats user input as the instruction
45
- input_text = user_input # Any additional input if needed; leave blank otherwise
46
 
47
  # Prepare inputs for model inference on the correct device
48
  inputs = tokenizer(
 
36
  # Define prompt structure (update if necessary for your model)
37
  alpaca_prompt = "{instruction} {input} {output}"
38
 
 
 
 
39
  @spaces.GPU # Use GPU provided by Hugging Face Spaces if available
40
  def generate_response(user_input, chat_history):
41
+ instruction = "Chat with me like Chandler talks."
42
+ input_text = user_input # Treats user input as the input
43
 
44
  # Prepare inputs for model inference on the correct device
45
  inputs = tokenizer(