[falcon] added job.status() await asyncio.sleep(0.1)
Browse files
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(
|