Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -74,17 +74,16 @@ gr.close_all()
|
|
74 |
|
75 |
demo = gr.Interface(fn = invoke,
|
76 |
inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1, value = "sk-"),
|
77 |
-
gr.Radio([RAG_OFF, RAG_CHROMA, RAG_MONGODB], label = "Retrieval-Augmented Generation", value = RAG_OFF),
|
78 |
gr.Textbox(label = "Prompt", value = "What are GPT-4's media capabilities in 5 emojis and 1 sentence?", lines = 1),
|
79 |
-
|
80 |
outputs = [gr.Textbox(label = "Completion", lines = 1)],
|
81 |
title = "Context-Aware Multimodal Reasoning Application",
|
82 |
description = os.environ["DESCRIPTION"],
|
83 |
-
examples = [["sk-",
|
84 |
-
["sk-",
|
85 |
-
["sk-",
|
86 |
-
["sk-",
|
87 |
-
["sk-",
|
88 |
cache_examples = False)
|
89 |
|
90 |
demo.launch()
|
|
|
74 |
|
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_CHROMA, 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"],
|
82 |
+
examples = [["sk-", "What are GPT-4's media capabilities in 5 emojis and 1 sentence?", RAG_MONGODB],
|
83 |
+
["sk-", "List GPT-4's exam scores and benchmark results.", RAG_CHROMA],
|
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_CHROMA],
|
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()
|