Comments (7)
approximatelabs/lambdaprompt#4
From lambdaprompt
, fix is to change the active loop
from sketch.
Hello,
All threads i can see is belongs to uvicorn. I am getting an error in gunicorn.
import asyncio loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) import sketch content = df.sketch.ask("hello", call_display=False)
I tried this
` import asyncio
from contextlib import contextmanager
@contextmanager
def setup_event_loop():
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
try:
yield loop
finally:
loop.close()
asyncio.set_event_loop(None)
with setup_event_loop() as loop:
import sketch`
from sketch.
gunicorn main:app -k uvicorn.workers.UvicornWorker --bind 0.0.0.0:8001 --forwarded-allow-ips '*'
from sketch.
Please somebody help
from sketch.
Add --loop asyncio
to your gunicorn
command
approximatelabs/lambdaprompt#4 (comment)
from sketch.
getting below error
usage: gunicorn [OPTIONS] [APP_MODULE] gunicorn: error: unrecognized arguments: --loop asyncio
from sketch.
Ah, oops, can you use uvicorn
instead of gunicorn
?
gunicorn
doesn't have async support, so to get that you'll want an async handler.
from sketch.
Related Issues (20)
- Wrong result for query "Get the top 5 grossing states" in sample colab HOT 1
- <IPython.core.display.HTML object> error HOT 4
- Generated code execution HOT 3
- Misspelling error HOT 1
- Can we calculate the Token costs (aka figure out what OpenAI will charge) HOT 1
- Joining dataframes HOT 3
- AttributeError: 'DataFrame' object has no attribute 'sketch' HOT 2
- Question : What is the use of to_b64() and from_b64() ? Why are they used? HOT 1
- and how to check that I'm using openai? HOT 3
- Local Mode fails on GGML models
- sketch.ask "Plot a bar chart..." in jupyter lab not including new lines.. HOT 3
- LAMBDAPROMPT_BACKEND = StarCoder causes a runtime error HOT 1
- I want to implement a google palm swtich HOT 1
- There is a validation error HOT 4
- sketch package no longer working in Google collab HOT 5
- LAMBDAPROMPT_BACKEND = StarCoder causes runtime ValidationError on .sketch.ask
- Privacy Policy HOT 2
- Not working HOT 2
- Discord link not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sketch.