smgc commited on
Commit
995e6d1
1 Parent(s): 0081309

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -124,7 +124,7 @@ def messages():
124
 
125
  def on_connect():
126
  logging.info("Connected to Perplexity AI")
127
- sio.emit('perplexity_ask', previous_messages, {
128
  "version": "2.9",
129
  "source": "default",
130
  "attachments": [],
@@ -139,7 +139,8 @@ def messages():
139
  "frontend_context_uuid": str(uuid.uuid4()),
140
  "prompt_source": "user",
141
  "query_source": "home"
142
- })
 
143
 
144
  def on_query_progress(data):
145
  nonlocal response_text
 
124
 
125
  def on_connect():
126
  logging.info("Connected to Perplexity AI")
127
+ emit_data = {
128
  "version": "2.9",
129
  "source": "default",
130
  "attachments": [],
 
139
  "frontend_context_uuid": str(uuid.uuid4()),
140
  "prompt_source": "user",
141
  "query_source": "home"
142
+ }
143
+ sio.emit('perplexity_ask', (previous_messages, emit_data))
144
 
145
  def on_query_progress(data):
146
  nonlocal response_text