Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ gr.close_all()
|
|
75 |
demo = gr.Interface(fn = invoke,
|
76 |
inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1, value = "sk-"),
|
77 |
gr.Textbox(label = "Prompt", value = "What are GPT-4's media capabilities in 5 emojis and 1 sentence?", lines = 1),
|
78 |
-
gr.Radio([RAG_OFF, RAG_MONGODB], label = "Retrieval-Augmented Generation", value = RAG_OFF)
|
79 |
outputs = [gr.Textbox(label = "Completion", lines = 1)],
|
80 |
title = "Context-Aware Multimodal Reasoning Application",
|
81 |
description = os.environ["DESCRIPTION"],
|
@@ -83,7 +83,7 @@ demo = gr.Interface(fn = invoke,
|
|
83 |
["sk-", "List GPT-4's exam scores and benchmark results.", RAG_MONGODB],
|
84 |
["sk-", "Compare GPT-4 to GPT-3.5 in markdown table format.", RAG_MONGODB],
|
85 |
["sk-", "Write a Python program that calls the GPT-4 API.", RAG_MONGODB],
|
86 |
-
["sk-", "What is the GPT-4 API's cost and rate limit? Answer in English, Arabic, Chinese, Hindi, and Russian in JSON format.", RAG_MONGODB]
|
87 |
cache_examples = False)
|
88 |
|
89 |
demo.launch()
|
|
|
75 |
demo = gr.Interface(fn = invoke,
|
76 |
inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1, value = "sk-"),
|
77 |
gr.Textbox(label = "Prompt", value = "What are GPT-4's media capabilities in 5 emojis and 1 sentence?", lines = 1),
|
78 |
+
gr.Radio([RAG_OFF, RAG_MONGODB], label = "Retrieval-Augmented Generation", value = RAG_OFF)],
|
79 |
outputs = [gr.Textbox(label = "Completion", lines = 1)],
|
80 |
title = "Context-Aware Multimodal Reasoning Application",
|
81 |
description = os.environ["DESCRIPTION"],
|
|
|
83 |
["sk-", "List GPT-4's exam scores and benchmark results.", RAG_MONGODB],
|
84 |
["sk-", "Compare GPT-4 to GPT-3.5 in markdown table format.", RAG_MONGODB],
|
85 |
["sk-", "Write a Python program that calls the GPT-4 API.", RAG_MONGODB],
|
86 |
+
["sk-", "What is the GPT-4 API's cost and rate limit? Answer in English, Arabic, Chinese, Hindi, and Russian in JSON format.", RAG_MONGODB]],
|
87 |
cache_examples = False)
|
88 |
|
89 |
demo.launch()
|