abhinavztb commited on
Commit
adde8fa
·
1 Parent(s): 2667618
Files changed (1) hide show
  1. app.py +25 -0
app.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ input = gr.Text(
4
+ label="Prompt",
5
+ show_label=False,
6
+ max_lines=1,
7
+ placeholder="Enter your prompt",
8
+ container=False,
9
+ )
10
+ # Define additional output for Relevant Links
11
+ relevant_links_output = gr.Textbox(
12
+ label="Relevant Links",
13
+ placeholder="Links will be displayed here"
14
+ )
15
+
16
+ iface = gr.Interface(fn=get_response,
17
+ inputs=input,
18
+ outputs=["text",relevant_links_output],
19
+ title="Unibot",
20
+ description="This is a RAG implementation based on OpenAI gpt model",
21
+ examples=sample_prompts,
22
+ allow_flagging=False
23
+ )
24
+
25
+ iface.launch()