bstraehle commited on
Commit
b8c92ce
·
verified ·
1 Parent(s): 303ed36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -89,16 +89,16 @@ 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 = "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, "."],
98
- ["sk-<BringYourOwn>", "List GPT-4's exam scores and benchmark results.", RAG_LANGCHAIN, ""],
99
- ["sk-<BringYourOwn>", "Compare GPT-4 to GPT-3.5 in markdown table format.", RAG_LLAMAINDEX, ""],
100
- ["sk-<BringYourOwn>", "Write a Python program that calls the GPT-4 API.", RAG_LANGCHAIN, ""],
101
- ["sk-<BringYourOwn>", "What is the GPT-4 API's cost and rate limit? Answer in English, Arabic, Chinese, Hindi, and Russian in JSON format.", RAG_LLAMAINDEX, ""]],
102
  cache_examples = False
103
  )
104
 
 
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 = "List GPT-4's exam scores and benchmark results.", 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],
98
+ ["sk-<BringYourOwn>", "List GPT-4's exam scores and benchmark results.", RAG_LANGCHAIN],
99
+ ["sk-<BringYourOwn>", "Compare GPT-4 to GPT-3.5 in markdown table format.", RAG_LLAMAINDEX],
100
+ ["sk-<BringYourOwn>", "Write a Python program that calls the GPT-4 API.", RAG_LANGCHAIN],
101
+ ["sk-<BringYourOwn>", "What is the GPT-4 API's cost and rate limit? Answer in English, Arabic, Chinese, Hindi, and Russian in JSON format.", RAG_LLAMAINDEX]],
102
  cache_examples = False
103
  )
104