Spaces:
Sleeping
Sleeping
Commit
·
448555e
1
Parent(s):
7375c28
rediss
Browse files
app.py
CHANGED
|
@@ -19,7 +19,8 @@ url = f"redis://default:{redis_pass}@redis-14461.c264.ap-south-1-1.ec2.redns.red
|
|
| 19 |
def load():
|
| 20 |
openai_api_key = os.getenv("OPENAI_API_KEY")
|
| 21 |
# redis_pass = os.getenv("REDIS_PASS")
|
| 22 |
-
REDIS_URL = os.getenv("REDIS_URL", url)
|
|
|
|
| 23 |
# redis_client = redis.from_url(REDIS_URL)
|
| 24 |
# redis_client = redis.Redis(
|
| 25 |
# host='redis-14461.c264.ap-south-1-1.ec2.redns.redis-cloud.com',
|
|
|
|
| 19 |
def load():
|
| 20 |
openai_api_key = os.getenv("OPENAI_API_KEY")
|
| 21 |
# redis_pass = os.getenv("REDIS_PASS")
|
| 22 |
+
# REDIS_URL = os.getenv("REDIS_URL", url)
|
| 23 |
+
REDIS_URL = url
|
| 24 |
# redis_client = redis.from_url(REDIS_URL)
|
| 25 |
# redis_client = redis.Redis(
|
| 26 |
# host='redis-14461.c264.ap-south-1-1.ec2.redns.redis-cloud.com',
|