jeysshon commited on
Commit
7fd50a5
·
verified ·
1 Parent(s): ffcf683

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -4,8 +4,20 @@ import google.generativeai as genai
4
  from PyPDF2 import PdfReader
5
  from fpdf import FPDF
6
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
- api_key = os.environ.get("GEMINI_API_KEY")
9
  if not api_key:
10
  st.error("La clave API no está configurada. Por favor, configúrala en las variables de entorno.")
11
  else:
 
4
  from PyPDF2 import PdfReader
5
  from fpdf import FPDF
6
 
7
+ # Inyecta CSS para utilizar la fuente "Poppins" de Google Fonts
8
+ st.markdown("""
9
+ <style>
10
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
11
+ html, body, [class*="css"] {
12
+ font-family: 'Poppins', sans-serif;
13
+ }
14
+ h1, h2, h3, h4, h5, h6 {
15
+ font-weight: 600;
16
+ }
17
+ </style>
18
+ """, unsafe_allow_html=True)
19
 
20
+ api_key = os.environ.get("GEMINI_API_KEY")
21
  if not api_key:
22
  st.error("La clave API no está configurada. Por favor, configúrala en las variables de entorno.")
23
  else: