Commit
·
e92200e
1
Parent(s):
102d44d
Deshabilitar la verificación SSL en la interfaz de Gradio y suprimir advertencias de conexiones inseguras
Browse files
app.py
CHANGED
@@ -34,4 +34,4 @@ demo = gr.TabbedInterface(
|
|
34 |
]
|
35 |
)
|
36 |
|
37 |
-
demo.launch(mcp_server=True,server_port=int(os.getenv("GRADIO_PORT", 7860)))
|
|
|
34 |
]
|
35 |
)
|
36 |
|
37 |
+
demo.launch(mcp_server=True,server_port=int(os.getenv("GRADIO_PORT", 7860)),ssl_verify=False)
|
tools.py
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
import requests as request
|
2 |
import os
|
|
|
|
|
|
|
|
|
3 |
|
4 |
# === TOOLS ===
|
5 |
def letter_counter(word, letter):
|
@@ -97,10 +101,10 @@ def execute_action(tab_id, action, params):
|
|
97 |
response = request.post(
|
98 |
url,
|
99 |
json=payload,
|
100 |
-
headers={'Content-Type': 'application/json'}
|
|
|
101 |
)
|
102 |
|
103 |
-
# This is a placeholder for actual implementation
|
104 |
return response
|
105 |
|
106 |
def create_shape(width:int, height:int, shape_type:str, fill_color:str, tab_id:str):
|
|
|
1 |
import requests as request
|
2 |
import os
|
3 |
+
import urllib3
|
4 |
+
|
5 |
+
# Suprimir advertencias sobre conexiones SSL inseguras
|
6 |
+
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
7 |
|
8 |
# === TOOLS ===
|
9 |
def letter_counter(word, letter):
|
|
|
101 |
response = request.post(
|
102 |
url,
|
103 |
json=payload,
|
104 |
+
headers={'Content-Type': 'application/json'},
|
105 |
+
verify=False
|
106 |
)
|
107 |
|
|
|
108 |
return response
|
109 |
|
110 |
def create_shape(width:int, height:int, shape_type:str, fill_color:str, tab_id:str):
|