darshil3011 commited on
Commit
5280802
·
1 Parent(s): 1f9810a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -3
app.py CHANGED
@@ -11,12 +11,23 @@ def call_gradio_api(user_input):
11
  return result[0], result[1], result[2]
12
 
13
  # Interface for the Gradio app
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  iface = gr.Interface(
15
  fn=call_gradio_api,
16
  inputs="text",
17
- outputs = [gr.Textbox(placeholder="Augmented prompt"),
18
- gr.Textbox(placeholder="Response"),
19
- gr.Textbox(placeholder="Sources")],
20
  layout="vertical",
21
  title="CCL Playground",
22
  description="Enter a query to get response using RAG"
 
11
  return result[0], result[1], result[2]
12
 
13
  # Interface for the Gradio app
14
+
15
+ new_prompt = gr.Textbox(
16
+ label="Augmented Prompt", placeholder="The generated summary will appear here"
17
+ )
18
+
19
+ chat_response = gr.Textbox(
20
+ label="Response", placeholder="The generated summary will appear here"
21
+ )
22
+
23
+ source_list = gr.Textbox(
24
+ label="Sources", placeholder="The generated summary will appear here"
25
+ )
26
+
27
  iface = gr.Interface(
28
  fn=call_gradio_api,
29
  inputs="text",
30
+ outputs = [new_prompt, chat_response, source_list],
 
 
31
  layout="vertical",
32
  title="CCL Playground",
33
  description="Enter a query to get response using RAG"