Hermes SIQ-1-35B on ZeroGPU (llama-cpp-python recipe)
Browse files
app.py
CHANGED
|
@@ -581,7 +581,7 @@ def _count_tokens(llm, text):
|
|
| 581 |
# ---------------------------------------------------------------------------
|
| 582 |
# Agent turn: full ReAct loop inside a single GPU window.
|
| 583 |
# ---------------------------------------------------------------------------
|
| 584 |
-
@spaces.GPU(duration=
|
| 585 |
def _content_text(c):
|
| 586 |
"""Flatten a chat message's content to plain text. On follow-up turns Gradio
|
| 587 |
returns content as a list of segment dicts ([{'type':'text','text':...}]),
|
|
|
|
| 581 |
# ---------------------------------------------------------------------------
|
| 582 |
# Agent turn: full ReAct loop inside a single GPU window.
|
| 583 |
# ---------------------------------------------------------------------------
|
| 584 |
+
@spaces.GPU(duration=300)
|
| 585 |
def _content_text(c):
|
| 586 |
"""Flatten a chat message's content to plain text. On follow-up turns Gradio
|
| 587 |
returns content as a list of segment dicts ([{'type':'text','text':...}]),
|