Update app.py
Browse files
app.py
CHANGED
|
@@ -442,7 +442,7 @@ HTML_TEMPLATE = """
|
|
| 442 |
showSuccess('PDF uploaded and cached successfully!');
|
| 443 |
|
| 444 |
// Add initial message
|
| 445 |
-
addMessage(
|
| 446 |
} else {
|
| 447 |
showError(result.error);
|
| 448 |
}
|
|
@@ -481,7 +481,7 @@ HTML_TEMPLATE = """
|
|
| 481 |
showSuccess('PDF uploaded and cached successfully!');
|
| 482 |
|
| 483 |
// Add initial message
|
| 484 |
-
addMessage(
|
| 485 |
} else {
|
| 486 |
showError(result.error);
|
| 487 |
}
|
|
@@ -791,4 +791,4 @@ def delete_cache(cache_id):
|
|
| 791 |
if __name__ == '__main__':
|
| 792 |
import os
|
| 793 |
port = int(os.environ.get("PORT", 7860))
|
| 794 |
-
app.run(debug=True, host='0.0.0.0', port=port)
|
|
|
|
| 442 |
showSuccess('PDF uploaded and cached successfully!');
|
| 443 |
|
| 444 |
// Add initial message
|
| 445 |
+
addMessage("I've analyzed your PDF document. What would you like to know about it?", 'ai');
|
| 446 |
} else {
|
| 447 |
showError(result.error);
|
| 448 |
}
|
|
|
|
| 481 |
showSuccess('PDF uploaded and cached successfully!');
|
| 482 |
|
| 483 |
// Add initial message
|
| 484 |
+
addMessage("I've analyzed your PDF document. What would you like to know about it?", 'ai');
|
| 485 |
} else {
|
| 486 |
showError(result.error);
|
| 487 |
}
|
|
|
|
| 791 |
if __name__ == '__main__':
|
| 792 |
import os
|
| 793 |
port = int(os.environ.get("PORT", 7860))
|
| 794 |
+
app.run(debug=True, host='0.0.0.0', port= port)
|