bstraehle commited on
Commit
7b3e7b6
·
verified ·
1 Parent(s): d96ee69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 = "What is the GPT-4 API's cost and rate limit? Answer in English, Arabic, Chinese, Hindi, and Russian in JSON format.", lines = 1),
93
- gr.Radio([RAG_OFF, RAG_LANGCHAIN, RAG_LLAMAINDEX], label = "Retrieval-Augmented Generation", value = RAG_LLAMAINDEX)],
94
- outputs = [gr.Markdown(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],
 
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],