Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ demo = gr.Interface(
|
|
46 |
inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1),
|
47 |
gr.Textbox(label = "Prompt", value = PROMPT, lines = 1),
|
48 |
gr.Radio([RAG_OFF, RAG_NAIVE, RAG_ADVANCED], label = "Retrieval-Augmented Generation", value = RAG_ADVANCED)],
|
49 |
-
outputs = [gr.Markdown(label = "Completion")],
|
50 |
title = "Context-Aware Reasoning Application",
|
51 |
description = os.environ["DESCRIPTION"]
|
52 |
)
|
|
|
46 |
inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1),
|
47 |
gr.Textbox(label = "Prompt", value = PROMPT, lines = 1),
|
48 |
gr.Radio([RAG_OFF, RAG_NAIVE, RAG_ADVANCED], label = "Retrieval-Augmented Generation", value = RAG_ADVANCED)],
|
49 |
+
outputs = [gr.Markdown(label = "Completion", value = os.environ["OUTPUT"], line_breaks = True, sanitize_html = False)],
|
50 |
title = "Context-Aware Reasoning Application",
|
51 |
description = os.environ["DESCRIPTION"]
|
52 |
)
|