Daniel00611 commited on
Commit
97a530f
·
verified ·
1 Parent(s): 39feb56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from openai import OpenAI
3
  import json
4
 
5
- with open("manual_usuario_text_urls.json", "r", encoding="utf-8") as file:
6
  context = file.read() # Cargar JSON como string
7
 
8
  def respond(
@@ -15,7 +15,7 @@ def respond(
15
  ):
16
  client = OpenAI(
17
  base_url="https://openrouter.ai/api/v1",
18
- api_key="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",
19
  )
20
 
21
  messages = [{"role": "system", "content": system_message}]
 
2
  from openai import OpenAI
3
  import json
4
 
5
+ with open("manual_usuario_text.json", "r", encoding="utf-8") as file:
6
  context = file.read() # Cargar JSON como string
7
 
8
  def respond(
 
15
  ):
16
  client = OpenAI(
17
  base_url="https://openrouter.ai/api/v1",
18
+ api_key="api-key",
19
  )
20
 
21
  messages = [{"role": "system", "content": system_message}]