danrdoran commited on
Commit
918f1c0
·
verified ·
1 Parent(s): e91d718

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ student_question = st.text_input("Ask your question!")
33
  # Generate and display response using the model's generate() function
34
  if student_question:
35
  # Prepare the input for the model
36
- input_text = f"Explain the answer to this question to a 10-year-old student: '{student_question}'"
37
  inputs = tokenizer(input_text, return_tensors="pt", truncation=True, max_length=256) # Reduced max_length to 256
38
 
39
  # Generate response
 
33
  # Generate and display response using the model's generate() function
34
  if student_question:
35
  # Prepare the input for the model
36
+ input_text = f"You are a tutor. Explain the answer to this question to a young student: '{student_question}'"
37
  inputs = tokenizer(input_text, return_tensors="pt", truncation=True, max_length=256) # Reduced max_length to 256
38
 
39
  # Generate response