Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,9 @@ description = """<strong>Overview:</strong> The app demonstrates how to use a La
|
|
81 |
|
82 |
gr.close_all()
|
83 |
demo = gr.Interface(fn=invoke,
|
84 |
-
inputs = [gr.Textbox(label = "OpenAI API Key", value = "sk-", lines = 1),
|
|
|
|
|
85 |
outputs = [gr.Textbox(label = "Completion", lines = 1)],
|
86 |
title = "Generative AI - LLM & RAG",
|
87 |
description = description)
|
|
|
81 |
|
82 |
gr.close_all()
|
83 |
demo = gr.Interface(fn=invoke,
|
84 |
+
inputs = [gr.Textbox(label = "OpenAI API Key", value = "sk-", lines = 1),
|
85 |
+
gr.Radio([True, False], label="Retrieval Augmented Generation", value = False),
|
86 |
+
gr.Textbox(label = "Prompt", value = "explain gpt-4", lines = 1)],
|
87 |
outputs = [gr.Textbox(label = "Completion", lines = 1)],
|
88 |
title = "Generative AI - LLM & RAG",
|
89 |
description = description)
|