Spaces:
Sleeping
Sleeping
locorene1000
commited on
Commit
•
aeb050a
1
Parent(s):
b62f5fe
app.py
CHANGED
@@ -3,8 +3,10 @@ import json
|
|
3 |
import gradio as gr
|
4 |
|
5 |
# Configuración de la API de NVIDIA
|
6 |
-
|
7 |
-
|
|
|
|
|
8 |
headers = {
|
9 |
"Authorization": f"Bearer {api_key}",
|
10 |
"Content-Type": "application/json",
|
|
|
3 |
import gradio as gr
|
4 |
|
5 |
# Configuración de la API de NVIDIA
|
6 |
+
client = OpenAI(
|
7 |
+
base_url = "https://integrate.api.nvidia.com/v1",
|
8 |
+
api_key = "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"
|
9 |
+
)
|
10 |
headers = {
|
11 |
"Authorization": f"Bearer {api_key}",
|
12 |
"Content-Type": "application/json",
|