bstraehle commited on
Commit
bb79bf1
1 Parent(s): 170a11d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -190,8 +190,8 @@ def invoke(openai_api_key, rag_option, prompt):
190
 
191
  gr.close_all()
192
  demo = gr.Interface(fn=invoke,
193
- inputs = [gr.Textbox(label = "OpenAI API Key", value = "sk-", lines = 1),
194
- gr.Radio([RAG_OFF, RAG_CHROMA, RAG_MONGODB], label="Retrieval Augmented Generation", value = RAG_OFF),
195
  gr.Textbox(label = "Prompt", value = "What is GPT-4?", lines = 1)],
196
  outputs = [gr.Textbox(label = "Completion", lines = 1)],
197
  title = "Generative AI - LLM & RAG",
 
190
 
191
  gr.close_all()
192
  demo = gr.Interface(fn=invoke,
193
+ inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1),
194
+ gr.Radio([RAG_OFF, RAG_CHROMA, RAG_MONGODB], label = "Retrieval Augmented Generation", value = RAG_OFF),
195
  gr.Textbox(label = "Prompt", value = "What is GPT-4?", lines = 1)],
196
  outputs = [gr.Textbox(label = "Completion", lines = 1)],
197
  title = "Generative AI - LLM & RAG",