Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
from datetime import date
|
4 |
-
from langchain.agents import AgentType, initialize_agent
|
5 |
from langchain.chat_models import ChatOpenAI
|
6 |
from langchain.tools.python.tool import PythonREPLTool
|
7 |
|
@@ -57,7 +57,7 @@ gr.close_all()
|
|
57 |
|
58 |
demo = gr.Interface(fn = invoke,
|
59 |
inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1),
|
60 |
-
gr.Textbox(label = "Prompt", lines = 1)],
|
61 |
outputs = [gr.Textbox(label = "Completion", lines = 1)],
|
62 |
title = "Generative AI - LLM & Agent",
|
63 |
description = description)
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
from datetime import date
|
4 |
+
from langchain.agents import AgentType, initialize_agent, tool
|
5 |
from langchain.chat_models import ChatOpenAI
|
6 |
from langchain.tools.python.tool import PythonREPLTool
|
7 |
|
|
|
57 |
|
58 |
demo = gr.Interface(fn = invoke,
|
59 |
inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1),
|
60 |
+
gr.Textbox(label = "Prompt", lines = 1)], "What is today's date?",
|
61 |
outputs = [gr.Textbox(label = "Completion", lines = 1)],
|
62 |
title = "Generative AI - LLM & Agent",
|
63 |
description = description)
|