satyanayak commited on
Commit
b46f96d
·
1 Parent(s): 12f6f51

examples list was fixed here

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -44,13 +44,13 @@ def generate_response(prompt, max_length=512, temperature=0.7, top_p=0.9):
44
  response = response.split("Assistant:")[-1].strip()
45
  return response
46
 
47
- # Example prompts
48
  EXAMPLE_PROMPTS = [
49
- "What is the capital of France?",
50
- "Write a short poem about autumn.",
51
- "Explain quantum computing in simple terms.",
52
- "Give me a recipe for chocolate chip cookies.",
53
- "What are the benefits of regular exercise?"
54
  ]
55
 
56
  # Load model and tokenizer
 
44
  response = response.split("Assistant:")[-1].strip()
45
  return response
46
 
47
+ # Example prompts - Update to include values for all input parameters
48
  EXAMPLE_PROMPTS = [
49
+ ["What is the capital of France?", 512, 0.7, 0.9],
50
+ ["Write a short poem about autumn.", 512, 0.7, 0.9],
51
+ ["Explain quantum computing in simple terms.", 512, 0.7, 0.9],
52
+ ["Give me a recipe for chocolate chip cookies.", 512, 0.7, 0.9],
53
+ ["What are the benefits of regular exercise?", 512, 0.7, 0.9]
54
  ]
55
 
56
  # Load model and tokenizer