Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -436,7 +436,8 @@ HTML_TEMPLATE = """
|
|
| 436 |
loadHistory();
|
| 437 |
if(!currentChatId) {
|
| 438 |
const box = document.getElementById("chat-box");
|
| 439 |
-
if(box.innerHTML === "") {
|
|
|
|
| 440 |
}
|
| 441 |
}
|
| 442 |
}
|
|
@@ -762,7 +763,7 @@ def chat():
|
|
| 762 |
def manifest():
|
| 763 |
data = {
|
| 764 |
"name": "Student's AI",
|
| 765 |
-
"short_name": "
|
| 766 |
"start_url": "/",
|
| 767 |
"display": "standalone",
|
| 768 |
"orientation": "portrait",
|
|
@@ -770,12 +771,12 @@ def manifest():
|
|
| 770 |
"theme_color": "#09090b",
|
| 771 |
"icons": [
|
| 772 |
{
|
| 773 |
-
"src": "https://
|
| 774 |
"sizes": "192x192",
|
| 775 |
"type": "image/png"
|
| 776 |
},
|
| 777 |
{
|
| 778 |
-
"src": "https://
|
| 779 |
"sizes": "512x512",
|
| 780 |
"type": "image/png"
|
| 781 |
}
|
|
@@ -784,5 +785,4 @@ def manifest():
|
|
| 784 |
return Response(json.dumps(data), mimetype='application/json')
|
| 785 |
|
| 786 |
if __name__ == '__main__':
|
| 787 |
-
app.run(host='0.0.0.0', port=7860)
|
| 788 |
-
box.innerHTML = getI
|
|
|
|
| 436 |
loadHistory();
|
| 437 |
if(!currentChatId) {
|
| 438 |
const box = document.getElementById("chat-box");
|
| 439 |
+
if(box.innerHTML === "") {
|
| 440 |
+
box.innerHTML = getIntroHtml(currentUser);
|
| 441 |
}
|
| 442 |
}
|
| 443 |
}
|
|
|
|
| 763 |
def manifest():
|
| 764 |
data = {
|
| 765 |
"name": "Student's AI",
|
| 766 |
+
"short_name": "Student's AI",
|
| 767 |
"start_url": "/",
|
| 768 |
"display": "standalone",
|
| 769 |
"orientation": "portrait",
|
|
|
|
| 771 |
"theme_color": "#09090b",
|
| 772 |
"icons": [
|
| 773 |
{
|
| 774 |
+
"src": "https://huggingface.co/spaces/Shirpi/Student-s_AI/resolve/main/1000177401.png",
|
| 775 |
"sizes": "192x192",
|
| 776 |
"type": "image/png"
|
| 777 |
},
|
| 778 |
{
|
| 779 |
+
"src": "https://huggingface.co/spaces/Shirpi/Student-s_AI/resolve/main/1000177401.png",
|
| 780 |
"sizes": "512x512",
|
| 781 |
"type": "image/png"
|
| 782 |
}
|
|
|
|
| 785 |
return Response(json.dumps(data), mimetype='application/json')
|
| 786 |
|
| 787 |
if __name__ == '__main__':
|
| 788 |
+
app.run(host='0.0.0.0', port=7860)
|
|
|