coyotte508 HF staff commited on
Commit
b2d3fac
β€’
1 Parent(s): ed82183

πŸ’« Add a bit of articial delay

Browse files
Files changed (1) hide show
  1. index.html +1 -0
index.html CHANGED
@@ -114,6 +114,7 @@ Output will be here</pre
114
  use_cache: false,
115
  })) {
116
  document.getElementById("logs").textContent += output.token.text;
 
117
  }
118
  } catch (err) {
119
  alert("Error: " + err.message);
 
114
  use_cache: false,
115
  })) {
116
  document.getElementById("logs").textContent += output.token.text;
117
+ await new Promise((resolve, reject) => setTimeout(resolve, 50));
118
  }
119
  } catch (err) {
120
  alert("Error: " + err.message);