Spaces:
Runtime error
Runtime error
Download app.py from alebezerra/dod_gpt: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/spaces/alebezerra/dod_gpt/resolve/main/app.py
- Command line
-
hf download hf://spaces/alebezerra/dod_gpt/app.py
-
curl -L -o app.py https://huggingface.co/spaces/alebezerra/dod_gpt/resolve/main/app.py
437 Bytes
| import gradio as gr | |
| import pinecone | |
| # initialize pinecone | |
| pinecone.init( | |
| api_key=os.environ['6a689e32-e0f3-44a5-9884-48169ce0f137'], # find at app.pinecone.io | |
| environment=os.environ['us-east4-gcp'] # next to api key in console | |
| ) | |
| docsearch = Pinecone.from_documents('dod-gpt35', embeddings) | |
| demo = gr.Interface( | |
| fn=greet, | |
| inputs=gr.Textbox(lines=2, placeholder="Name Here..."), | |
| outputs="text", | |
| ) | |
| demo.launch() |