[new] add gradio and hf spaces deployments (#1042)

This commit is contained in:
Sidharth Mohanty
2023-12-22 00:00:55 +05:30
committed by GitHub
parent ec8549d0e1
commit 210fe9bb80
8 changed files with 267 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
import os
import gradio as gr
from embedchain import Pipeline as App
os.environ["OPENAI_API_KEY"] = "sk-xxx"
app = App()
def query(message, history):
return app.chat(message)
demo = gr.ChatInterface(query)
demo.launch()

View File

@@ -0,0 +1,2 @@
gradio==4.11.0
embedchain