Update app.py
Browse files
app.py
CHANGED
@@ -17,13 +17,15 @@ def run(prompt, plugin_json):
|
|
17 |
return agent_chain.run(prompt)
|
18 |
|
19 |
title="""
|
20 |
-
|
|
|
|
|
21 |
"""
|
22 |
with gr.Blocks() as demo:
|
23 |
with gr.Column():
|
24 |
gr.HTML(title)
|
25 |
prompt = gr.Textbox(label="Prompt", value="what t shirts are available in klarna?")
|
26 |
-
plugin = gr.Textbox(label="Plugin", value="https://www.klarna.com/.well-known/ai-plugin.json")
|
27 |
run_btn = gr.Button("Run")
|
28 |
response = gr.Textbox(label="Response")
|
29 |
run_btn.click(fn=run,
|
|
|
17 |
return agent_chain.run(prompt)
|
18 |
|
19 |
title="""
|
20 |
+
<div style="text-align:center;">
|
21 |
+
<h1>ChatGPT Plugins playground</h1>
|
22 |
+
</div>
|
23 |
"""
|
24 |
with gr.Blocks() as demo:
|
25 |
with gr.Column():
|
26 |
gr.HTML(title)
|
27 |
prompt = gr.Textbox(label="Prompt", value="what t shirts are available in klarna?")
|
28 |
+
plugin = gr.Textbox(label="Plugin json", info="You need the .json plugin file of the plugin you want to use", value="https://www.klarna.com/.well-known/ai-plugin.json")
|
29 |
run_btn = gr.Button("Run")
|
30 |
response = gr.Textbox(label="Response")
|
31 |
run_btn.click(fn=run,
|