Spaces:
Build error
Build error
Download app.py from Resham121612/my-node-learning-app: direct link, hf CLI and curl.
- Browser
- Download file 221 Bytes
-
https://huggingface.co/spaces/Resham121612/my-node-learning-app/resolve/main/app.py
- Command line
-
hf download hf://spaces/Resham121612/my-node-learning-app/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Resham121612/my-node-learning-app/resolve/main/app.py
221 Bytes
| import os | |
| import gradio as gr | |
| from embedchain import App | |
| os.environ["OPENAI_API_KEY"] = "sk-xxx" | |
| app = App() | |
| def query(message, history): | |
| return app.chat(message) | |
| demo = gr.ChatInterface(query) | |
| demo.launch() | |