Spaces:
Running
Running
Commit
·
fbf23d7
1
Parent(s):
8dc9794
desc
Browse files
app.py
CHANGED
@@ -47,8 +47,8 @@ def chatbot(input):
|
|
47 |
return reply
|
48 |
|
49 |
|
50 |
-
with gr.Blocks(css=".
|
51 |
-
url = gr.Textbox(label="Enter a webpage URL to chat about")
|
52 |
url.change(fn=get_data, inputs=url)
|
53 |
gr.Examples(["https://www.nerdwallet.com/article/travel/how-much-are-my-united-miles-worth",
|
54 |
"https://www.bbc.com/news/business-64937251",
|
@@ -56,7 +56,7 @@ with gr.Blocks(css=".gradio-container {background-color: transparent}") as demo:
|
|
56 |
|
57 |
chatbot_item = gr.Chatbot([], elem_id="chatbot").style(height=250)
|
58 |
|
59 |
-
msg = gr.Textbox(label="Chat with AI about the webpage")
|
60 |
gr.Examples(["Please summarise the webpage", "What is the tone of the webpage?", "Tell me your favorite part of the webpage"], inputs=[msg])
|
61 |
with gr.Row():
|
62 |
with gr.Column(scale=2):
|
|
|
47 |
return reply
|
48 |
|
49 |
|
50 |
+
with gr.Blocks(css="index.css", title="chatWEBPAGE", description="Chat to any webpage!") as demo:
|
51 |
+
url = gr.Textbox(label="1. Enter a webpage URL to chat about")
|
52 |
url.change(fn=get_data, inputs=url)
|
53 |
gr.Examples(["https://www.nerdwallet.com/article/travel/how-much-are-my-united-miles-worth",
|
54 |
"https://www.bbc.com/news/business-64937251",
|
|
|
56 |
|
57 |
chatbot_item = gr.Chatbot([], elem_id="chatbot").style(height=250)
|
58 |
|
59 |
+
msg = gr.Textbox(label="2. Chat with AI about the webpage")
|
60 |
gr.Examples(["Please summarise the webpage", "What is the tone of the webpage?", "Tell me your favorite part of the webpage"], inputs=[msg])
|
61 |
with gr.Row():
|
62 |
with gr.Column(scale=2):
|
index.css
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
body {
|
2 |
+
font-family: "Arial", sans-serif;
|
3 |
+
background-color: #f5f5f5;
|
4 |
+
color: #333;
|
5 |
+
}
|
6 |
+
|
7 |
+
.block {
|
8 |
+
background-color: white;
|
9 |
+
padding: 0px;
|
10 |
+
border-radius: 8px;
|
11 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
12 |
+
}
|