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