mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-06 10:25:17 +08:00
latest pypi version
This commit is contained in:
parent
bfac4b2f48
commit
d39e50c6be
@ -13,11 +13,9 @@ from gradio import networking, strings
|
||||
from distutils.version import StrictVersion
|
||||
import pkg_resources
|
||||
import requests
|
||||
import termcolor
|
||||
import random
|
||||
|
||||
LOCALHOST_IP = "127.0.0.1"
|
||||
INITIAL_WEBSOCKET_PORT = 9200
|
||||
TRY_NUM_PORTS = 100
|
||||
PKG_VERSION_URL = "https://gradio.app/api/pkg-version"
|
||||
|
||||
|
@ -223,7 +223,9 @@ def serve_files_in_background(interface, port, directory_to_serve=None):
|
||||
elif self.path == "/api/flag/":
|
||||
self._set_headers()
|
||||
data_string = self.rfile.read(int(self.headers["Content-Length"]))
|
||||
print('data_string', data_string)
|
||||
msg = json.loads(data_string)
|
||||
print('msg', msg)
|
||||
flag_dir = FLAGGING_DIRECTORY.format(interface.hash)
|
||||
os.makedirs(flag_dir, exist_ok=True)
|
||||
dict = {'input': interface.input_interface.rebuild_flagged(flag_dir, msg),
|
||||
|
@ -11,7 +11,7 @@ from io import StringIO
|
||||
import warnings
|
||||
import paramiko
|
||||
|
||||
DEBUG_MODE = False
|
||||
DEBUG_MODE = True
|
||||
|
||||
|
||||
def handler(chan, host, port):
|
||||
|
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
Metadata-Version: 1.0
|
||||
Name: gradio
|
||||
Version: 0.7.3
|
||||
Version: 0.7.4
|
||||
Summary: Python library for easily interacting with trained machine learning models
|
||||
Home-page: https://github.com/abidlabs/gradio
|
||||
Author: Abubakar Abid
|
||||
|
@ -1,6 +1,4 @@
|
||||
numpy
|
||||
websockets
|
||||
nest_asyncio
|
||||
beautifulsoup4
|
||||
Pillow
|
||||
requests
|
||||
|
@ -13,11 +13,9 @@ from gradio import networking, strings
|
||||
from distutils.version import StrictVersion
|
||||
import pkg_resources
|
||||
import requests
|
||||
import termcolor
|
||||
import random
|
||||
|
||||
LOCALHOST_IP = "127.0.0.1"
|
||||
INITIAL_WEBSOCKET_PORT = 9200
|
||||
TRY_NUM_PORTS = 100
|
||||
PKG_VERSION_URL = "https://gradio.app/api/pkg-version"
|
||||
|
||||
|
@ -223,7 +223,9 @@ def serve_files_in_background(interface, port, directory_to_serve=None):
|
||||
elif self.path == "/api/flag/":
|
||||
self._set_headers()
|
||||
data_string = self.rfile.read(int(self.headers["Content-Length"]))
|
||||
print('data_string', data_string)
|
||||
msg = json.loads(data_string)
|
||||
print('msg', msg)
|
||||
flag_dir = FLAGGING_DIRECTORY.format(interface.hash)
|
||||
os.makedirs(flag_dir, exist_ok=True)
|
||||
dict = {'input': interface.input_interface.rebuild_flagged(flag_dir, msg),
|
||||
|
@ -11,7 +11,7 @@ from io import StringIO
|
||||
import warnings
|
||||
import paramiko
|
||||
|
||||
DEBUG_MODE = False
|
||||
DEBUG_MODE = True
|
||||
|
||||
|
||||
def handler(chan, host, port):
|
||||
|
4
setup.py
4
setup.py
@ -5,7 +5,7 @@ except ImportError:
|
||||
|
||||
setup(
|
||||
name='gradio',
|
||||
version='0.7.3',
|
||||
version='0.7.4',
|
||||
include_package_data=True,
|
||||
description='Python library for easily interacting with trained machine learning models',
|
||||
author='Abubakar Abid',
|
||||
@ -15,8 +15,6 @@ setup(
|
||||
keywords=['machine learning', 'visualization', 'reproducibility'],
|
||||
install_requires=[
|
||||
'numpy',
|
||||
'websockets',
|
||||
'nest_asyncio',
|
||||
'beautifulsoup4',
|
||||
'Pillow',
|
||||
'requests',
|
||||
|
Loading…
Reference in New Issue
Block a user