adi2606 commited on
Commit
db93709
·
verified ·
1 Parent(s): 2d0ce20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ tokenizer = AutoTokenizer.from_pretrained("adi2606/MenstrualQA")
8
 
9
  # Function to generate a response from the chatbot
10
  def generate_response(message: str, temperature: float = 0.4, repetition_penalty: float = 1.1) -> str:
11
- inputs = tokenizer(message, return_tensors="pt", padding=True, truncation=True).to(device)
12
 
13
  # Generate the response
14
  output = model.generate(
 
8
 
9
  # Function to generate a response from the chatbot
10
  def generate_response(message: str, temperature: float = 0.4, repetition_penalty: float = 1.1) -> str:
11
+ inputs = tokenizer(message, return_tensors="pt", padding=True, truncation=True)
12
 
13
  # Generate the response
14
  output = model.generate(