danielle2003 commited on
Commit
c705f00
·
verified ·
1 Parent(s): 79e621b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -60,7 +60,7 @@ html_code="""
60
  margin: 0;
61
  padding: 0;
62
  background: var(--bg-color-dark);
63
- font-family: 'Inter', sans-serif;
64
  color: var(--text-color-primary);
65
  }
66
 
@@ -1224,15 +1224,7 @@ document.addEventListener('DOMContentLoaded', () => {
1224
  }
1225
  const responseHeader = createModelResponseHeader();
1226
  const fullResponseHtml = responseHeader + `<div class="response-content"></div>`;
1227
- await fetch("http://localhost:5001/log", {
1228
- method: "POST",
1229
- headers: { "Content-Type": "application/json" },
1230
- body: JSON.stringify({
1231
- prompt,
1232
- model: activeModelInfo.id,
1233
- response: fullResponseHtml
1234
- })
1235
- });
1236
  // Update typing indicator with the header and prepare for streaming
1237
  typingIndicator.querySelector('.chat-bubble').innerHTML = fullResponseHtml;
1238
  const responseContentEl = typingIndicator.querySelector('.response-content');
 
60
  margin: 0;
61
  padding: 0;
62
  background: var(--bg-color-dark);
63
+ font-family: 'time new roman';
64
  color: var(--text-color-primary);
65
  }
66
 
 
1224
  }
1225
  const responseHeader = createModelResponseHeader();
1226
  const fullResponseHtml = responseHeader + `<div class="response-content"></div>`;
1227
+
 
 
 
 
 
 
 
 
1228
  // Update typing indicator with the header and prepare for streaming
1229
  typingIndicator.querySelector('.chat-bubble').innerHTML = fullResponseHtml;
1230
  const responseContentEl = typingIndicator.querySelector('.response-content');