Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -647,9 +647,9 @@ def chat_completions(body: ChatCompletionRequest, request: fastapi.Request) -> d
|
|
| 647 |
BUSY_JS = """(text, num_candidates, structured_fallback, md, source, status, details, dl) => {
|
| 648 |
const n = Number(num_candidates) || 1;
|
| 649 |
const label = n > 1 ? 'PASITA ' + n + ' SAMPLES / RERANK' : 'PASITA SAMPLE / RERANK';
|
| 650 |
-
return ['
|
| 651 |
'<div class="p-status busy"><span class="p-dot"></span><span class="p-text">CONVERTING</span><span class="p-detail">' + label + '</span></div>',
|
| 652 |
-
'
|
| 653 |
}"""
|
| 654 |
|
| 655 |
COUNTER_JS = """(text) => {
|
|
|
|
| 647 |
BUSY_JS = """(text, num_candidates, structured_fallback, md, source, status, details, dl) => {
|
| 648 |
const n = Number(num_candidates) || 1;
|
| 649 |
const label = n > 1 ? 'PASITA ' + n + ' SAMPLES / RERANK' : 'PASITA SAMPLE / RERANK';
|
| 650 |
+
return ['Converting…', '',
|
| 651 |
'<div class="p-status busy"><span class="p-dot"></span><span class="p-text">CONVERTING</span><span class="p-detail">' + label + '</span></div>',
|
| 652 |
+
'Checking drafts…', null];
|
| 653 |
}"""
|
| 654 |
|
| 655 |
COUNTER_JS = """(text) => {
|