vishnu23 commited on
Commit
1f47244
·
1 Parent(s): abcf2df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -16
app.py CHANGED
@@ -15,19 +15,10 @@ def scrap(urls):
15
  docs = text_splitter.split_documents(data)
16
  return docs
17
 
18
- with gr.Blocks() as demo:
19
- f=0
20
- gr.Markdown('# <center>INTELLIGENT ANALYSIS OF DOCUMENTS DRIVEN QA CHATBOT</center>')
21
- input=gr.Textbox(
22
- label='Enter the website URL',
23
- placeholder='https://kceai.com/'
24
- )
25
- text_button = gr.Button("Build the Bot!!!")
26
- text_output = gr.Textbox(
27
- label="Verify the status",
28
- placeholder="Start Building the Bot to view the content")
29
- text_button.click(scrap, [input], text_output)
30
-
31
- demo.queue().launch(debug = True,
32
- auth=("username", "password"),
33
- )
 
15
  docs = text_splitter.split_documents(data)
16
  return docs
17
 
18
+ iface = gr.Interface(fn = scrap,
19
+ inputs = "URL",
20
+ outputs = ['text'],
21
+ title = 'WebScrap',
22
+ description="Get content of the website from given website URL")
23
+
24
+ iface.launch(inline = False)