Spaces:
Sleeping
Sleeping
kgauvin603
commited on
Commit
•
317cd3e
1
Parent(s):
0efc290
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def build_database():
|
|
42 |
collection = build_database()
|
43 |
|
44 |
# Access the Anyscale API key from environment variables
|
45 |
-
|
46 |
|
47 |
# Instantiate the Anyscale client for using the Llama language model
|
48 |
client = Anyscale(api_key=anyscale_api_key, model="meta-llama/Llama-2-70b-chat-hf")
|
@@ -180,5 +180,5 @@ iface = gr.Interface(
|
|
180 |
description="Query the vector database and get an LLM response based on the documents in the collection."
|
181 |
)
|
182 |
|
183 |
-
# Launch the Gradio
|
184 |
iface.launch()
|
|
|
42 |
collection = build_database()
|
43 |
|
44 |
# Access the Anyscale API key from environment variables
|
45 |
+
anyscale_api_key = os.environ.get('anyscale_api_key')
|
46 |
|
47 |
# Instantiate the Anyscale client for using the Llama language model
|
48 |
client = Anyscale(api_key=anyscale_api_key, model="meta-llama/Llama-2-70b-chat-hf")
|
|
|
180 |
description="Query the vector database and get an LLM response based on the documents in the collection."
|
181 |
)
|
182 |
|
183 |
+
# Launch the Gradio interface
|
184 |
iface.launch()
|