JACOBBBB commited on
Commit
f91fe82
1 Parent(s): 3e5fb49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,9 +37,9 @@ if st.button("Analyze and Respond"):
37
 
38
  # Generate a professional response based on the review and its sentiment
39
  if label == "POSITIVE":
40
- prompt = "Thank you for sharing your experience. We are glad that you had a wonderful stay with us."
41
  else:
42
- prompt = "Thank you for letting us know about the issues that you experienced during your recent stay at our property. Sorry for any inconvenience caused."
43
 
44
  professional_response = response_generator(prompt, max_length=50, num_return_sequences=1)[0]['generated_text']
45
  # Display the generated professional response
 
37
 
38
  # Generate a professional response based on the review and its sentiment
39
  if label == "POSITIVE":
40
+ prompt = "Thank you for sharing your experience and choosing our hotel. We are glad that you had a wonderful stay with us"
41
  else:
42
+ prompt = "Thank you for letting us know about the issues that you experienced during your recent stay at our hotel. Sorry for any inconvenience caused."
43
 
44
  professional_response = response_generator(prompt, max_length=50, num_return_sequences=1)[0]['generated_text']
45
  # Display the generated professional response