Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def invoke(openai_api_key, rag_option, prompt):
|
|
72 |
|
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),
|
|
|
72 |
|
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),
|