BitKnight commited on
Commit
b94bfb3
·
verified ·
1 Parent(s): 249e1f3

Shorter GPU reservation (more free runs per visitor); first-run and quota note

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -92,7 +92,7 @@ def parse_table(text, lang):
92
  return qs
93
 
94
 
95
- @spaces.GPU(duration=20, size=GPU_SIZE)
96
  def _run(x, qs, n_perm):
97
  t = time.perf_counter()
98
  res = DECIDER.decide(x, qs) if MOCK else DECIDER.decide(x, qs, n_perm=n_perm)
@@ -145,7 +145,11 @@ finished? should I stop talking? are they angry?* Every answer comes from **one
145
  10 decisions in 92 ms, 21× faster than ASR → LLM ([paper](https://arxiv.org/abs/2610.02638)).
146
 
147
  ⭐ [GitHub](https://github.com/adventists-ai/duplexjev) · 🤗 [Models](https://huggingface.co/adventists-ai) ·
148
- 🔌 Pipecat: `pip install pipecat-duplexjev` · 🏢 Commercial licence & hosted API: **jiejin@adventists.ai**
 
 
 
 
149
  """
150
 
151
  FOOT = """
 
92
  return qs
93
 
94
 
95
+ @spaces.GPU(duration=6, size=GPU_SIZE) # a call takes ~0.3 s; a short reservation leaves visitors more free runs
96
  def _run(x, qs, n_perm):
97
  t = time.perf_counter()
98
  res = DECIDER.decide(x, qs) if MOCK else DECIDER.decide(x, qs, n_perm=n_perm)
 
145
  10 decisions in 92 ms, 21× faster than ASR → LLM ([paper](https://arxiv.org/abs/2610.02638)).
146
 
147
  ⭐ [GitHub](https://github.com/adventists-ai/duplexjev) · 🤗 [Models](https://huggingface.co/adventists-ai) ·
148
+ 🔌 Pipecat: `pip install pipecat-duplexjev` · LiveKit: `pip install livekit-plugins-duplexjev` · 🏢 Commercial licence & hosted API: **jiejin@adventists.ai**
149
+
150
+ <sub>⏱️ The first run after the Space has been idle takes a few seconds while Hugging Face attaches a GPU; after that each run takes about 0.3 s on the GPU.
151
+ Free GPU time per visitor is limited by Hugging Face — [log in](https://huggingface.co/login) for more runs.
152
+ 首次运行需要几秒分配 GPU,之后每次约 0.3 秒;登录 Hugging Face 可获得更多免费次数。</sub>
153
  """
154
 
155
  FOOT = """