Update app.py
Browse files
app.py
CHANGED
@@ -110,19 +110,20 @@ def query_model(question):
|
|
110 |
|
111 |
# Define the welcome message and specific topics the chatbot can provide information about
|
112 |
welcome_message = """
|
113 |
-
<span style="color:#FFF4EA; font-size:90px; font-weight:bold; font_path = 'Silkscreen-Regular.ttf'font_manager.fontManager.addfont(font_path); plt.rcParams['font.family'] = font_manager.FontProperties(fname=font_path).get_name();">˚˖𓍢ִ໋🌷͙֒✧ Welcome to Plai
|
114 |
|
115 |
-
<span style="color:#
|
116 |
"""
|
117 |
topics = """
|
118 |
-
<span style="color:#AB4E68; font-size:30px; font-weight:bold; font_path = 'Silkscreen-Regular.ttf'font_manager.fontManager.addfont(font_path); plt.rcParams['font.family'] = font_manager.FontProperties(fname=font_path).get_name();"
|
119 |
|
120 |
-
<span style="color:#A25F9D; font-size:20px; font-weight:light; font_path = 'Silkscreen-Regular.ttf'font_manager.fontManager.addfont(font_path); plt.rcParams['font.family'] = font_manager.FontProperties(fname=font_path).get_name();"
|
121 |
|
122 |
-
<span style="color:#A25F9D; font-size:20px; font-weight:light; font_path = 'Silkscreen-Regular.ttf'font_manager.fontManager.addfont(font_path); plt.rcParams['font.family'] = font_manager.FontProperties(fname=font_path).get_name();"
|
123 |
|
124 |
-
<span style="color:#A25F9D; font-size:20px; font-weight:light; font_path = 'Silkscreen-Regular.ttf'font_manager.fontManager.addfont(font_path); plt.rcParams['font.family'] = font_manager.FontProperties(fname=font_path).get_name();"
|
125 |
|
|
|
126 |
"""
|
127 |
theme = gr.themes.Base().set(
|
128 |
background_fill_primary='#FAB9CB', # Light pink background
|
@@ -148,9 +149,9 @@ with gr.Blocks(theme=theme) as demo:
|
|
148 |
gr.Image("Image.png", show_label = False, show_share_button = False, show_download_button = False)
|
149 |
with gr.Row():
|
150 |
with gr.Column():
|
151 |
-
question = gr.Textbox(label="
|
152 |
-
answer = gr.Textbox(label="
|
153 |
-
submit_button = gr.Button("Submit")
|
154 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
155 |
|
156 |
|
|
|
110 |
|
111 |
# Define the welcome message and specific topics the chatbot can provide information about
|
112 |
welcome_message = """
|
113 |
+
<span style="color:#FFF4EA; font-size:90px; font-weight:bold; font_path = 'Silkscreen-Regular.ttf'font_manager.fontManager.addfont(font_path); plt.rcParams['font.family'] = font_manager.FontProperties(fname=font_path).get_name();">˚˖𓍢ִ໋🌷͙֒✧ Welcome to Plai!͙֒˚.🎀༘⋆ .</span>
|
114 |
|
115 |
+
<span style="color:#CEB0A8; font-size:40px; font-weight:light; font_path = 'Silkscreen-Regular.ttf'font_manager.fontManager.addfont(font_path); plt.rcParams['font.family'] = font_manager.FontProperties(fname=font_path).get_name();">🫧𓍢ִ໋🍬˚˖𓍢ִ໋🦢˚Your AI-Driven Assistant for all Videogame Related Queries. Created by Perennial, Jiya, and Ly-Ly of the 2024 Kode With Klossy San Francisco Camp.</span>
|
116 |
"""
|
117 |
topics = """
|
118 |
+
<span style="color:#AB4E68; font-size:30px; font-weight:bold; font_path = 'Silkscreen-Regular.ttf'font_manager.fontManager.addfont(font_path); plt.rcParams['font.family'] = font_manager.FontProperties(fname=font_path).get_name();">𓍢ִ໋🌷͙֒₊˚*ੈ🎀⸝⸝🍓⋆Feel Free to ask for Recommendations Based on:</span>
|
119 |
|
120 |
+
<span style="color:#A25F9D; font-size:20px; font-weight:light; font_path = 'Silkscreen-Regular.ttf'font_manager.fontManager.addfont(font_path); plt.rcParams['font.family'] = font_manager.FontProperties(fname=font_path).get_name();">୭ 🧷 ✧ ˚. 🎀 Genre</span>
|
121 |
|
122 |
+
<span style="color:#A25F9D; font-size:20px; font-weight:light; font_path = 'Silkscreen-Regular.ttf'font_manager.fontManager.addfont(font_path); plt.rcParams['font.family'] = font_manager.FontProperties(fname=font_path).get_name();"𖧷₊˚˖𓍢ִ🍓✧˚.🎀༘⋆゚* Affordability</span>
|
123 |
|
124 |
+
<span style="color:#A25F9D; font-size:20px; font-weight:light; font_path = 'Silkscreen-Regular.ttf'font_manager.fontManager.addfont(font_path); plt.rcParams['font.family'] = font_manager.FontProperties(fname=font_path).get_name();">🍰♡ ༘*.゚🧸🎀 Feeling</span>
|
125 |
|
126 |
+
<span style="color:#A25F9D; font-size:20px; font-weight:light; font_path = 'Silkscreen-Regular.ttf'font_manager.fontManager.addfont(font_path); plt.rcParams['font.family'] = font_manager.FontProperties(fname=font_path).get_name();">˚₊‧꒰ა ꣑ৎ ໒꒱ ‧₊˚Feeling</span>
|
127 |
"""
|
128 |
theme = gr.themes.Base().set(
|
129 |
background_fill_primary='#FAB9CB', # Light pink background
|
|
|
149 |
gr.Image("Image.png", show_label = False, show_share_button = False, show_download_button = False)
|
150 |
with gr.Row():
|
151 |
with gr.Column():
|
152 |
+
question = gr.Textbox(label="ׁ ׁ ꥓ ݄ ׁ 𖦹🎀 ׅ 𓈒Your Question⋆𐙚₊˚⊹♡", placeholder="༘⋆🌷🫧What do you Want to ask About?💭₊˚ෆ")
|
153 |
+
answer = gr.Textbox(label="˚ ༘˚Plai Responseೀ⋆。", placeholder="𝜗𝜚꥓ ⊹ 𓈒˚₊ִֶָPlai will Respond Here...", interactive=False, lines=10)
|
154 |
+
submit_button = gr.Button("˚₊‧꒰აSubmit໒꒱ ‧₊˚")
|
155 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
156 |
|
157 |
|