Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -54,11 +54,11 @@ def get_movies(message, history):
|
|
54 |
except Exception as e:
|
55 |
error_message = traceback.format_exc()
|
56 |
print("An error occurred: \n" + error_message)
|
57 |
-
yield "Please clone the repo and add your open ai key as well as your MongoDB Atlas
|
58 |
|
59 |
|
60 |
|
61 |
-
demo = gr.ChatInterface(get_movies, examples=["What movies are scary?", "Find me a comedy", "Movies for kids"], title="Movies Atlas Vector Search",description="This small chat uses a similarity search to find relevant movies, it uses
|
62 |
|
63 |
if __name__ == "__main__":
|
64 |
demo.launch()
|
|
|
54 |
except Exception as e:
|
55 |
error_message = traceback.format_exc()
|
56 |
print("An error occurred: \n" + error_message)
|
57 |
+
yield "Please clone the repo and add your open ai key as well as your MongoDB Atlas URI in the Secret Section of you Space\n OPENAI_API_KEY (your Open AI key) and MONGODB_ATLAS_CLUSTER_URI (0.0.0.0/0 whitelisted instance with Vector index created) \n\n For more information : https://mongodb.com/products/platform/atlas-vector-search"
|
58 |
|
59 |
|
60 |
|
61 |
+
demo = gr.ChatInterface(get_movies, examples=["What movies are scary?", "Find me a comedy", "Movies for kids"], title="Movies Atlas Vector Search",description="This small chat uses a similarity search to find relevant movies, it uses MongoDB Atlas Vector Search read more here: https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-tutorial",submit_btn="Search").queue()
|
62 |
|
63 |
if __name__ == "__main__":
|
64 |
demo.launch()
|