bstraehle commited on
Commit
5b2798d
·
1 Parent(s): 252c2ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
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-", RAG_MONGODB, "What are GPT-4's media capabilities in 5 emojis and 1 sentence?"],
84
- ["sk-", RAG_CHROMA, "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_CHROMA, "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()
 
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()