bstraehle commited on
Commit
14e92f6
·
1 Parent(s): 61dc87a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, 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"],
 
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"],