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