Spaces:
Runtime error
Runtime error
Commit
·
e2281c1
1
Parent(s):
a49ee2f
Update app.py
Browse files
app.py
CHANGED
@@ -24,14 +24,18 @@ chat_response_2 = gr.Textbox(
|
|
24 |
label="Response based on original prompt", placeholder="Response of the prompt will appear here"
|
25 |
)
|
26 |
|
27 |
-
source_list = gr.
|
28 |
label="Sources", placeholder="Document source title and doi will appear here"
|
29 |
)
|
|
|
|
|
|
|
|
|
30 |
|
31 |
iface = gr.Interface(
|
32 |
fn=call_gradio_api,
|
33 |
inputs="text",
|
34 |
-
outputs = [new_prompt, chat_response_1, chat_response_2, source_list],
|
35 |
examples=["Make me a 4-hour workshop agenda for handling conflict", "Tell me about the different skills from middle management to executive leadership", "What are some of the major debates among scholars regarding the trait versus process theories of leadership? How have these perspectives evolved over time?"],
|
36 |
layout="horizontal",
|
37 |
title="CCL Playground",
|
|
|
24 |
label="Response based on original prompt", placeholder="Response of the prompt will appear here"
|
25 |
)
|
26 |
|
27 |
+
source_list = gr.JSON(
|
28 |
label="Sources", placeholder="Document source title and doi will appear here"
|
29 |
)
|
30 |
+
|
31 |
+
questions = gr.JSON(
|
32 |
+
label="Questions", placeholder="Related questions"
|
33 |
+
)
|
34 |
|
35 |
iface = gr.Interface(
|
36 |
fn=call_gradio_api,
|
37 |
inputs="text",
|
38 |
+
outputs = [new_prompt, chat_response_1, chat_response_2, source_list,questions],
|
39 |
examples=["Make me a 4-hour workshop agenda for handling conflict", "Tell me about the different skills from middle management to executive leadership", "What are some of the major debates among scholars regarding the trait versus process theories of leadership? How have these perspectives evolved over time?"],
|
40 |
layout="horizontal",
|
41 |
title="CCL Playground",
|