Spaces:
Runtime error
Runtime error
File size: 433 Bytes
5bd6c7f da96782 5bd6c7f da96782 5bd6c7f 3e82880 7d16c91 5bd6c7f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import gradio as gr
from langchain.llms import OpenAI
def chatOpenAI(input):
llm = OpenAI(temperature=0.9)
return llm(input)
with gr.Blocks() as demo:
gr.Markdown(
'''
# LangChain Test
LLM跑步上车。
LangChain进度:
    2023/4/15,接入openAI,简单测试。
''')
gr.Interface(fn=chatOpenAI, inputs="text", outputs="text")
demo.launch() |