Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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
|