Update app.py
Browse files
app.py
CHANGED
|
@@ -15,19 +15,10 @@ def scrap(urls):
|
|
| 15 |
docs = text_splitter.split_documents(data)
|
| 16 |
return docs
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|