Spaces:
Runtime error
Runtime error
gabriel lopez
commited on
Commit
·
3b75996
1
Parent(s):
a4a2f35
text
Browse files
app.py
CHANGED
@@ -15,19 +15,21 @@ pio.templates.default = "plotly_dark"
|
|
15 |
# setting up the text in the page
|
16 |
TITLE = "<center><h1>Talk with an AI</h1></center>"
|
17 |
DESCRIPTION = r"""<center>This application allows you to talk with a machine/robot with state-of-the-art technology!!<br>
|
18 |
-
In the back-end is using the GPT2 model from OpenAI. One of the best models in text generation and comprehension
|
19 |
-
The AI thinks he is a human, so please treat him as such. Else he migh get angry!<br>
|
20 |
Language processing is done using RoBERTa for sentiment-analysis and spaCy for named-entity recognition and dependency plotting.<br>
|
21 |
-
|
|
|
22 |
EXAMPLES = [
|
23 |
["What is your favorite videogame?"],
|
24 |
-
["What
|
|
|
25 |
["What are your hobbies?"],
|
26 |
["What is your favorite food?"],
|
27 |
]
|
28 |
ARTICLE = r"""<center>
|
29 |
Done by dr. Gabriel Lopez<br>
|
30 |
For more please visit: <a href='https://sites.google.com/view/dr-gabriel-lopez/home'>My Page</a><br>
|
|
|
31 |
</center>"""
|
32 |
|
33 |
# Loading necessary NLP models
|
|
|
15 |
# setting up the text in the page
|
16 |
TITLE = "<center><h1>Talk with an AI</h1></center>"
|
17 |
DESCRIPTION = r"""<center>This application allows you to talk with a machine/robot with state-of-the-art technology!!<br>
|
18 |
+
In the back-end is using the GPT2 model from OpenAI. One of the best models in text generation and comprehension.<br>
|
|
|
19 |
Language processing is done using RoBERTa for sentiment-analysis and spaCy for named-entity recognition and dependency plotting.<br>
|
20 |
+
The AI thinks he is a human, so please treat him as such, else he migh get angry!<br>
|
21 |
+
"""
|
22 |
EXAMPLES = [
|
23 |
["What is your favorite videogame?"],
|
24 |
+
["What gets you really sad?"],
|
25 |
+
["How can I make you really angry? "]["What do you do for work?"],
|
26 |
["What are your hobbies?"],
|
27 |
["What is your favorite food?"],
|
28 |
]
|
29 |
ARTICLE = r"""<center>
|
30 |
Done by dr. Gabriel Lopez<br>
|
31 |
For more please visit: <a href='https://sites.google.com/view/dr-gabriel-lopez/home'>My Page</a><br>
|
32 |
+
For info about the chat-bot model can also see the <a href="https://arxiv.org/abs/1911.00536">ArXiv paper</a><br>
|
33 |
</center>"""
|
34 |
|
35 |
# Loading necessary NLP models
|