bstraehle commited on
Commit
4c13268
·
1 Parent(s): 4d54fd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -73,12 +73,18 @@ def invoke(openai_api_key, rag_option, prompt):
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.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
 
84
  demo.launch()
 
73
  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-", RAG_MONGODB, "What are GPT-4's media capabilities in 5 emojis and 1 sentence?"],
84
+ ["sk-", RAG_MONGODB, "List GPT-4's exam scores and benchmark results."],
85
+ ["sk-", RAG_MONGODB, "Compare GPT-4 to GPT-3.5 in markdown table format."],
86
+ ["sk-", RAG_MONGODB, "Write a Python program that calls the GPT-4 API."],
87
+ ["sk-", RAG_MONGODB, "What is the GPT-4 API's cost and rate limit? Answer in English, Arabic, Chinese, Hindi, and Russian in JSON format."],],
88
+ cache_examples = False)
89
 
90
  demo.launch()