Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,6 +41,6 @@ if st.button("Analyze and Respond"):
|
|
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=
|
45 |
# Display the generated professional response
|
46 |
st.write("Generated Professional Response:", professional_response)
|
|
|
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
|
46 |
st.write("Generated Professional Response:", professional_response)
|