Spaces:
Sleeping
Sleeping
angelesteban00
commited on
Commit
•
fb4b26a
1
Parent(s):
1299579
Update app.py
Browse files
app.py
CHANGED
@@ -9,9 +9,9 @@ from gradio.themes.base import Base
|
|
9 |
#import key_param
|
10 |
import os
|
11 |
|
12 |
-
def query_data(query):
|
13 |
-
#mongo_uri = os.getenv("MONGO_URI")
|
14 |
#openai_api_key = os.getenv("OPENAI_API_KEY")
|
|
|
15 |
|
16 |
client = MongoClient(mongo_uri)
|
17 |
dbName = "langchain_demo"
|
|
|
9 |
#import key_param
|
10 |
import os
|
11 |
|
12 |
+
def query_data(query,openai_api_key,mongo_uri):
|
|
|
13 |
#openai_api_key = os.getenv("OPENAI_API_KEY")
|
14 |
+
#mongo_uri = os.getenv("MONGO_URI")
|
15 |
|
16 |
client = MongoClient(mongo_uri)
|
17 |
dbName = "langchain_demo"
|