Update app.py
Browse files
app.py
CHANGED
@@ -73,9 +73,9 @@ def invoke(openai_api_key, prompt, rag_option):
|
|
73 |
gr.close_all()
|
74 |
|
75 |
demo = gr.Interface(fn = invoke,
|
76 |
-
inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1
|
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 =
|
79 |
outputs = [gr.Textbox(label = "Completion", lines = 1)],
|
80 |
title = "Context-Aware Multimodal Reasoning Application",
|
81 |
description = os.environ["DESCRIPTION"],
|
|
|
73 |
gr.close_all()
|
74 |
|
75 |
demo = gr.Interface(fn = invoke,
|
76 |
+
inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1),
|
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_MONGODB)],
|
79 |
outputs = [gr.Textbox(label = "Completion", lines = 1)],
|
80 |
title = "Context-Aware Multimodal Reasoning Application",
|
81 |
description = os.environ["DESCRIPTION"],
|