Update app.py
Browse files
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",
|
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",
|