Josedcape commited on
Commit
ca2bd3a
verified
1 Parent(s): 265d229

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -23,11 +23,11 @@ st.markdown(
23
  <style>
24
  @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
25
 
26
- .main {
27
- background-color: #000000;
28
- color: #ECF0F1;
29
- background-image: url('https://s1.1zoom.me/big0/395/Fields_Sunrises_and_499477.jpg');
30
- background-size: cover;
31
  }
32
  .stButton>button {
33
  background-color: #4CAF50;
@@ -49,7 +49,7 @@ st.markdown(
49
  font-size: 16px;
50
  }
51
  .stMarkdown>h1, .stMarkdown>h2, .stMarkdown>h3, .stMarkdown>h4, .stMarkdown>h5, .stMarkdown>h6 {
52
- color: blue;
53
  font-weight: bold;
54
  font-style: italic;
55
  }
@@ -116,7 +116,7 @@ def listar_imagenes(carpeta):
116
  def generar_reflexion(keyword):
117
  prompt = f"Genera una reflexi贸n inspiradora sobre {keyword} en el contexto de la espiritualidad y la Biblia."
118
  response = openai.ChatCompletion.create(
119
- model="gpt-4",
120
  messages=[{"role": "system", "content": "Eres un asistente teol贸gico que proporciona reflexiones inspiradoras."},
121
  {"role": "user", "content": prompt}],
122
  temperature=0.7,
@@ -150,7 +150,7 @@ def obtener_audio_aleatorio():
150
  def obtener_respuesta(pregunta):
151
  prompt = f"Responde a la siguiente pregunta b铆blica: {pregunta}"
152
  response = openai.ChatCompletion.create(
153
- model="gpt-4",
154
  messages=[{"role": "system", "content": "Eres un asistente teol贸gico carism谩tico, entusiasmado por ayudar a comprender la palabra de Dios."},
155
  {"role": "user", "content": prompt}],
156
  temperature=0.7,
 
23
  <style>
24
  @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
25
 
26
+ body {
27
+ background: url('https://www.dekowizja.pl/img2/1000/78118676/obraz-na-plotnie-laka-slonce-ziarno-piekny.jpg');
28
+ background-size: cover;
29
+ color: #333;
30
+ font-family: 'Roboto', sans-serif;
31
  }
32
  .stButton>button {
33
  background-color: #4CAF50;
 
49
  font-size: 16px;
50
  }
51
  .stMarkdown>h1, .stMarkdown>h2, .stMarkdown>h3, .stMarkdown>h4, .stMarkdown>h5, .stMarkdown>h6 {
52
+ color: white;
53
  font-weight: bold;
54
  font-style: italic;
55
  }
 
116
  def generar_reflexion(keyword):
117
  prompt = f"Genera una reflexi贸n inspiradora sobre {keyword} en el contexto de la espiritualidad y la Biblia."
118
  response = openai.ChatCompletion.create(
119
+ model="gpt-3.5-turbo-16k",
120
  messages=[{"role": "system", "content": "Eres un asistente teol贸gico que proporciona reflexiones inspiradoras."},
121
  {"role": "user", "content": prompt}],
122
  temperature=0.7,
 
150
  def obtener_respuesta(pregunta):
151
  prompt = f"Responde a la siguiente pregunta b铆blica: {pregunta}"
152
  response = openai.ChatCompletion.create(
153
+ model="gpt-3.5-turbo-16k",
154
  messages=[{"role": "system", "content": "Eres un asistente teol贸gico carism谩tico, entusiasmado por ayudar a comprender la palabra de Dios."},
155
  {"role": "user", "content": prompt}],
156
  temperature=0.7,