Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -249,10 +249,13 @@ def main():
|
|
249 |
st.write(ai_response)
|
250 |
|
251 |
|
|
|
|
|
|
|
252 |
# Create and display the copy button only if ai_response has content
|
253 |
if ai_response:
|
254 |
# Create and display the copy button
|
255 |
-
copy_button_html = create_copy_button(
|
256 |
components.html(copy_button_html, height=24)
|
257 |
|
258 |
# Add a button to clear chat history
|
|
|
249 |
st.write(ai_response)
|
250 |
|
251 |
|
252 |
+
combined_string = f"Question: {user_query}\nAnswer: {ai_response}"
|
253 |
+
|
254 |
+
|
255 |
# Create and display the copy button only if ai_response has content
|
256 |
if ai_response:
|
257 |
# Create and display the copy button
|
258 |
+
copy_button_html = create_copy_button(combined_string)
|
259 |
components.html(copy_button_html, height=24)
|
260 |
|
261 |
# Add a button to clear chat history
|