Spaces:
Running
Running
Commit
·
18e7ac6
1
Parent(s):
2de680f
mode
Browse files- app.py +1 -1
- conversation.py +1 -1
app.py
CHANGED
@@ -30,7 +30,7 @@ with gr.Blocks(css="footer {visibility: hidden}", title="ChatWebpage.com") as de
|
|
30 |
with gr.Column(scale=4):
|
31 |
gr.Examples(["Please summarise the webpage", "What is the tone of the webpage?", "Tell me your favorite part of the webpage"], inputs=[msg])
|
32 |
with gr.Column(scale=4):
|
33 |
-
model = gr.Radio(["
|
34 |
|
35 |
with gr.Row():
|
36 |
with gr.Column(scale=2):
|
|
|
30 |
with gr.Column(scale=4):
|
31 |
gr.Examples(["Please summarise the webpage", "What is the tone of the webpage?", "Tell me your favorite part of the webpage"], inputs=[msg])
|
32 |
with gr.Column(scale=4):
|
33 |
+
model = gr.Radio(["GPT-3.5", "GPT-4"], value="gpt-3.5", label="3. Which AI model?")
|
34 |
|
35 |
with gr.Row():
|
36 |
with gr.Column(scale=2):
|
conversation.py
CHANGED
@@ -81,7 +81,7 @@ class Conversation:
|
|
81 |
doc = BeautifulSoup(html, 'html.parser')
|
82 |
if not doc:
|
83 |
raise ValueError("Please try again")
|
84 |
-
|
85 |
headings_1 = [e.text for e in doc.find_all('h1')]
|
86 |
headings_2 = [e.text for e in doc.find_all('h2')]
|
87 |
# headings_3 = [e.text for e in doc.find_all('h3')]
|
|
|
81 |
doc = BeautifulSoup(html, 'html.parser')
|
82 |
if not doc:
|
83 |
raise ValueError("Please try again")
|
84 |
+
doc = doc.body
|
85 |
headings_1 = [e.text for e in doc.find_all('h1')]
|
86 |
headings_2 = [e.text for e in doc.find_all('h2')]
|
87 |
# headings_3 = [e.text for e in doc.find_all('h3')]
|