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