jbilcke-hf HF staff commited on
Commit
3bcd657
1 Parent(s): 6c8acb9

small improvement to the doc

Browse files
Files changed (2) hide show
  1. README.md +15 -0
  2. src/index.mts +1 -1
README.md CHANGED
@@ -11,6 +11,21 @@ app_port: 7860
11
  A minimalist Docker space to help people getting started with Node, WizardCoder (through CTransformers and Pythonia), Express and TypeScript.
12
  Ready to be used in a Hugging Face Space.
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  ## Installation
15
 
16
  ### Prerequisites
 
11
  A minimalist Docker space to help people getting started with Node, WizardCoder (through CTransformers and Pythonia), Express and TypeScript.
12
  Ready to be used in a Hugging Face Space.
13
 
14
+
15
+ # Examples
16
+
17
+ ## Live example
18
+
19
+ Note: the space make take a few minutes to start.
20
+ If it begins outputing bad HTML, release the page.
21
+
22
+ https://huggingface.co/spaces/jbilcke-hf/template-node-wizardcoder-express?prompt=the%20landing%20page%20of%20a%20dog%20sitting%20company%20operating%20in%20NYC
23
+
24
+ ## Local prompt examples
25
+
26
+ http://localhost:7860/?prompt=a%20landing%20page%20for%20a%20company%20called%20Hugging%20Face
27
+ http://localhost:7860?prompt=the%20landing%20page%20of%20a%20dog%20sitting%20company%20operating%20in%20NYC
28
+
29
  ## Installation
30
 
31
  ### Prerequisites
src/index.mts CHANGED
@@ -65,7 +65,7 @@ app.get("/debug", (req, res) => {
65
  app.get("/", async (req, res) => {
66
  // naive implementation: we say we are out of capacity
67
  if (pending.queue.length >= maxParallelRequests) {
68
- res.write("sorry, max nb of parallel request reached")
69
  res.end()
70
  return
71
  }
 
65
  app.get("/", async (req, res) => {
66
  // naive implementation: we say we are out of capacity
67
  if (pending.queue.length >= maxParallelRequests) {
68
+ res.write("sorry, max nb of parallel requests reached")
69
  res.end()
70
  return
71
  }