Spaces:
Runtime error
Runtime error
abhi1nandy2
commited on
Commit
•
619f1a8
1
Parent(s):
a2f4ff8
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,6 @@ import requests
|
|
5 |
from bs4 import BeautifulSoup
|
6 |
from bs4.element import Comment
|
7 |
|
8 |
-
gr.Markdown("## Might show a tad bit of hallucination")
|
9 |
-
|
10 |
def get_text_from_url(url):
|
11 |
response = requests.get(url)
|
12 |
soup = BeautifulSoup(response.text, 'html.parser')
|
@@ -76,7 +74,13 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
76 |
|
77 |
# initial_message = [("user", "Yo who dis Abhilash?")]
|
78 |
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
respond,
|
81 |
examples = ["Yo who dis Abhilash?", "What is Abhilash's most recent publication?"],
|
82 |
# message=initial_message,
|
|
|
5 |
from bs4 import BeautifulSoup
|
6 |
from bs4.element import Comment
|
7 |
|
|
|
|
|
8 |
def get_text_from_url(url):
|
9 |
response = requests.get(url)
|
10 |
soup = BeautifulSoup(response.text, 'html.parser')
|
|
|
74 |
|
75 |
# initial_message = [("user", "Yo who dis Abhilash?")]
|
76 |
|
77 |
+
markdown_note = "## Might show a tad bit of hallucination"
|
78 |
+
|
79 |
+
demo = gr.Blocks()
|
80 |
+
|
81 |
+
with demo:
|
82 |
+
gr.Markdown(markdown_note)
|
83 |
+
gr.ChatInterface(
|
84 |
respond,
|
85 |
examples = ["Yo who dis Abhilash?", "What is Abhilash's most recent publication?"],
|
86 |
# message=initial_message,
|