Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,15 @@ import torch
|
|
| 11 |
# a machine learning library that that performs cosine similarity calculations
|
| 12 |
import numpy as np
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
# upload knowledge base - from sentiment analysis lab
|
| 15 |
with open("essay_writing.txt", "r", encoding="utf-8") as f:
|
| 16 |
essay_writing = f.read()
|
|
@@ -75,8 +84,8 @@ Feel free to ask me about the topics below:
|
|
| 75 |
title_hotline = "# Need help? Look for your city and try these helpful hotlines."
|
| 76 |
hotline_text = """#### Check out these hotlines"""
|
| 77 |
|
| 78 |
-
with gr.Blocks() as chatbot:
|
| 79 |
-
# gr.Markdown(welcome_message)
|
| 80 |
with gr.Row():
|
| 81 |
with gr.Column():
|
| 82 |
gr.Markdown(title)
|
|
|
|
| 11 |
# a machine learning library that that performs cosine similarity calculations
|
| 12 |
import numpy as np
|
| 13 |
|
| 14 |
+
theme = gr.themes.Soft(
|
| 15 |
+
primary_hue="pink",
|
| 16 |
+
secondary_hue="pink",
|
| 17 |
+
neutral_hue="fuchsia",
|
| 18 |
+
).set(
|
| 19 |
+
link_text_color='*secondary_700',
|
| 20 |
+
background_fill_primary = 'primary_600'
|
| 21 |
+
)
|
| 22 |
+
|
| 23 |
# upload knowledge base - from sentiment analysis lab
|
| 24 |
with open("essay_writing.txt", "r", encoding="utf-8") as f:
|
| 25 |
essay_writing = f.read()
|
|
|
|
| 84 |
title_hotline = "# Need help? Look for your city and try these helpful hotlines."
|
| 85 |
hotline_text = """#### Check out these hotlines"""
|
| 86 |
|
| 87 |
+
with gr.Blocks (theme = theme) as chatbot:
|
| 88 |
+
# chatbot = gr.Chatbot())# gr.Markdown(welcome_message)
|
| 89 |
with gr.Row():
|
| 90 |
with gr.Column():
|
| 91 |
gr.Markdown(title)
|