Skip to content

Commit

Permalink
fix: use urllib instead of requests
Browse files Browse the repository at this point in the history
  • Loading branch information
larme committed Nov 11, 2024
1 parent cc58814 commit 5f7c3d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/comfyui_idl/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import json
import logging
import os
import requests
import shutil
import subprocess
import tempfile
Expand All @@ -20,10 +19,12 @@


def _probe_comfyui_server():
from urllib import parse, request
url = 'http://127.0.0.1:8188/api/customnode/getmappings'
params = {'mode': 'nickname'}

_ = requests.get(url, params=params)
full_url = f"{url}?{parse.urlencode(params)}"
req = request.Request(full_url)
_ = request.urlopen(req)


class WorkflowRunner:
Expand Down

0 comments on commit 5f7c3d8

Please sign in to comment.