Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -131,7 +131,8 @@ def format_response(response, citations):
|
|
131 |
|
132 |
{"### Citations" if citations else ""}
|
133 |
{"".join([f"- {citation}\n" for citation in citations]) if citations else ""}
|
134 |
-
"""
|
|
|
135 |
|
136 |
def response_generator(response, citations):
|
137 |
"""Generator for streaming response with structured output."""
|
@@ -517,3 +518,5 @@ elif page == "Admin":
|
|
517 |
|
518 |
|
519 |
|
|
|
|
|
|
131 |
|
132 |
{"### Citations" if citations else ""}
|
133 |
{"".join([f"- {citation}\n" for citation in citations]) if citations else ""}
|
134 |
+
"""
|
135 |
+
return formatted_text.strip()
|
136 |
|
137 |
def response_generator(response, citations):
|
138 |
"""Generator for streaming response with structured output."""
|
|
|
518 |
|
519 |
|
520 |
|
521 |
+
|
522 |
+
|