Spaces:
Runtime error
Runtime error
File size: 294 Bytes
5bd6c7f da96782 5bd6c7f da96782 5bd6c7f d02575f 5bd6c7f |
1 2 3 4 5 6 7 8 9 10 11 |
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跑步上车。")
gr.Interface(fn=chatOpenAI, inputs="text", outputs="text")
demo.launch() |