lunarflu HF Staff commited on
Commit
4eb21c7
·
1 Parent(s): e00b8b9

[falcon] added job.status() await asyncio.sleep(0.1)

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -578,6 +578,16 @@ async def falcon(ctx, *, prompt: str):
578
  #fn 5 -> fn 1
579
  # will give something like = /tmp/tmpklf60u2h.json, which will contain something like [["What day is today?", "Today"]] (prompt, generation)
580
  job = falconspace.submit(prompt, result, instructions, 0.8, 0.9, fn_index=1) # This is not blocking
 
 
 
 
 
 
 
 
 
 
581
  job.result()
582
  '''
583
  result2 = falconspace.predict(
 
578
  #fn 5 -> fn 1
579
  # will give something like = /tmp/tmpklf60u2h.json, which will contain something like [["What day is today?", "Today"]] (prompt, generation)
580
  job = falconspace.submit(prompt, result, instructions, 0.8, 0.9, fn_index=1) # This is not blocking
581
+ job.status()
582
+ await asyncio.sleep(0.1)
583
+ job.status()
584
+ await asyncio.sleep(0.1)
585
+ job.status()
586
+ await asyncio.sleep(0.1)
587
+ job.status()
588
+ await asyncio.sleep(0.1)
589
+ job.status()
590
+ await asyncio.sleep(0.1)
591
  job.result()
592
  '''
593
  result2 = falconspace.predict(