monra commited on
Commit
13e3891
1 Parent(s): 43cbbae

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. server/website.py +1 -1
server/website.py CHANGED
@@ -26,7 +26,7 @@ class Website:
26
  if '-' not in conversation_id:
27
  return redirect(url_for('._index'))
28
 
29
- return render_template('index.html', chat_id=conversation_id)
30
 
31
  def _index(self):
32
  return render_template('index.html', chat_id=f'{urandom(4).hex()}-{urandom(2).hex()}-{urandom(2).hex()}-{urandom(2).hex()}-{hex(int(time() * 1000))[2:]}', url_prefix=self.url_prefix)
 
26
  if '-' not in conversation_id:
27
  return redirect(url_for('._index'))
28
 
29
+ return render_template('index.html', chat_id=conversation_id, url_prefix=self.url_prefix)
30
 
31
  def _index(self):
32
  return render_template('index.html', chat_id=f'{urandom(4).hex()}-{urandom(2).hex()}-{urandom(2).hex()}-{urandom(2).hex()}-{hex(int(time() * 1000))[2:]}', url_prefix=self.url_prefix)