Update app.py
Browse files
app.py
CHANGED
@@ -89,9 +89,9 @@ gr.close_all()
|
|
89 |
demo = gr.Interface(
|
90 |
fn = invoke,
|
91 |
inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1),
|
92 |
-
gr.Textbox(label = "Prompt", value = "
|
93 |
-
gr.Radio([RAG_OFF, RAG_LANGCHAIN, RAG_LLAMAINDEX], label = "Retrieval-Augmented Generation", value =
|
94 |
-
outputs = [gr.
|
95 |
title = "Context-Aware Reasoning Application",
|
96 |
description = os.environ["DESCRIPTION"],
|
97 |
examples = [["sk-<BringYourOwn>", "What are GPT-4's media capabilities in 5 emojis and 1 sentence?", RAG_LLAMAINDEX],
|
|
|
89 |
demo = gr.Interface(
|
90 |
fn = invoke,
|
91 |
inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1),
|
92 |
+
gr.Textbox(label = "Prompt", value = "Write a Python program that calls the GPT-4 API.", lines = 1),
|
93 |
+
gr.Radio([RAG_OFF, RAG_LANGCHAIN, RAG_LLAMAINDEX], label = "Retrieval-Augmented Generation", value = RAG_LANGCHAIN)],
|
94 |
+
outputs = [gr.Textbox(label = "Completion", value = os.environ["OUTPUT"])],
|
95 |
title = "Context-Aware Reasoning Application",
|
96 |
description = os.environ["DESCRIPTION"],
|
97 |
examples = [["sk-<BringYourOwn>", "What are GPT-4's media capabilities in 5 emojis and 1 sentence?", RAG_LLAMAINDEX],
|