abdulllah01 commited on
Commit
2ffcbcf
·
verified ·
1 Parent(s): b07da96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ question = st.text_input("Question:", "")
20
 
21
  # Prepare the input text
22
  input_text = f"question: {question} context: {context}"
23
- input_ids = tokenizer.encode(input_text, return_tensors="pt").to(device)
24
 
25
  # Generate the answer
26
 
 
20
 
21
  # Prepare the input text
22
  input_text = f"question: {question} context: {context}"
23
+ input_ids = tokenizer.encode(input_text, return_tensors="pt")
24
 
25
  # Generate the answer
26