PringlePeanut commited on
Commit
afba429
·
verified ·
1 Parent(s): 7573397

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -14
app.py CHANGED
@@ -5,19 +5,6 @@ import os
5
  import matplotlib.pyplot as plt
6
  from matplotlib import font_manager
7
 
8
- # Specify the path to your downloaded font file
9
- font_path = 'Silkscreen-Regular.ttf'
10
-
11
- # Add the font to Matplotlib's font manager
12
- font_manager.fontManager.addfont(font_path)
13
-
14
- # Set the font as the default
15
- plt.rcParams['font.family'] = font_manager.FontProperties(fname=font_path).get_name()
16
-
17
- # Create a plot to test
18
- plt.text(0.5, 0.5, 'Hello, World!', fontsize=40, ha='center')
19
- plt.show()
20
-
21
  os.environ["TOKENIZERS_PARALLELISM"] = "false"
22
 
23
  # Initialize paths and model identifiers for easy configuration and maintenance
@@ -123,7 +110,7 @@ def query_model(question):
123
 
124
  # Define the welcome message and specific topics the chatbot can provide information about
125
  welcome_message = """
126
- <span style="color:#846A6A; font-size:90px; font-weight:bold; font-family: 'Silkscreen-Regular', sans-serif;">🎮 Welcome to Plai!</span>
127
 
128
  ## 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.
129
  """
 
5
  import matplotlib.pyplot as plt
6
  from matplotlib import font_manager
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  os.environ["TOKENIZERS_PARALLELISM"] = "false"
9
 
10
  # Initialize paths and model identifiers for easy configuration and maintenance
 
110
 
111
  # Define the welcome message and specific topics the chatbot can provide information about
112
  welcome_message = """
113
+ <span style="color:#846A6A; 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
  ## 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.
116
  """