Spaces:
Sleeping
Sleeping
Download app.py from alrojas68/Embedchain: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/spaces/alrojas68/Embedchain/resolve/main/app.py
- Command line
-
hf download hf://spaces/alrojas68/Embedchain/app.py
-
curl -L -o app.py https://huggingface.co/spaces/alrojas68/Embedchain/resolve/main/app.py
478 Bytes
| import os | |
| import gradio as gr | |
| from embedchain import App | |
| from embedchain import App | |
| os.environ["OPENAI_API_KEY"] = "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" | |
| app = App() | |
| app.add('Manual_de_prevencion_31demarzo.pdf', data_type='pdf_file') | |
| def query(message, history): | |
| return app.chat(message) | |
| demo = gr.ChatInterface(query) | |
| demo.launch() | |