mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-23 11:39:17 +08:00
3.2 release! (#2139)
* 3.2 * ip address test catch * treat 3.x interfaces as interfaces * formatting * mode
This commit is contained in:
parent
b2a181d4b0
commit
4e1ee4099f
@ -495,6 +495,11 @@ class Blocks(BlockContext):
|
||||
blocks.input_components = [blocks.blocks[i] for i in dependency["inputs"]]
|
||||
blocks.output_components = [blocks.blocks[o] for o in dependency["outputs"]]
|
||||
|
||||
if config.get("mode", "blocks") == "interface":
|
||||
blocks.__name__ = "Interface"
|
||||
blocks.mode = "interface"
|
||||
blocks.api_mode = True
|
||||
|
||||
return blocks
|
||||
|
||||
def __call__(self, *params, fn_index=0):
|
||||
|
@ -1 +1 @@
|
||||
3.1.8b
|
||||
3.2
|
||||
|
@ -102,9 +102,10 @@ class TestUtils(unittest.TestCase):
|
||||
|
||||
|
||||
class TestIPAddress(unittest.TestCase):
|
||||
@pytest.mark.flaky
|
||||
def test_get_ip(self):
|
||||
ip = get_local_ip_address()
|
||||
if ip == "No internet connection":
|
||||
return
|
||||
try: # check whether ip is valid
|
||||
ipaddress.ip_address(ip)
|
||||
except ValueError:
|
||||
|
Loading…
Reference in New Issue
Block a user