poemsforaphrodite commited on
Commit
3a8e792
1 Parent(s): 5d29a7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -125,7 +125,7 @@ def create_assistant():
125
 
126
  def format_response(response, citations):
127
  """Format the response with proper markdown structure."""
128
- parts = ["### Response", response]
129
 
130
  if citations:
131
  parts.extend(["### Citations"])
@@ -135,8 +135,7 @@ def format_response(response, citations):
135
 
136
  def response_generator(response, citations):
137
  """Generator for streaming response with structured output."""
138
- # First yield the response header
139
- yield "### Response\n\n"
140
  time.sleep(0.1)
141
 
142
  # Yield the main response word by word
 
125
 
126
  def format_response(response, citations):
127
  """Format the response with proper markdown structure."""
128
+ parts = ["", response]
129
 
130
  if citations:
131
  parts.extend(["### Citations"])
 
135
 
136
  def response_generator(response, citations):
137
  """Generator for streaming response with structured output."""
138
+ # First yield the response heade
 
139
  time.sleep(0.1)
140
 
141
  # Yield the main response word by word