latest pypi version

This commit is contained in:
Abubakar Abid 2019-04-20 00:16:00 -07:00
parent bfac4b2f48
commit d39e50c6be
10 changed files with 8 additions and 12 deletions

View File

@ -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"

View File

@ -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),

View File

@ -11,7 +11,7 @@ from io import StringIO
import warnings
import paramiko
DEBUG_MODE = False
DEBUG_MODE = True
def handler(chan, host, port):

View File

@ -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

View File

@ -1,6 +1,4 @@
numpy
websockets
nest_asyncio
beautifulsoup4
Pillow
requests

View File

@ -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"

View File

@ -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),

View File

@ -11,7 +11,7 @@ from io import StringIO
import warnings
import paramiko
DEBUG_MODE = False
DEBUG_MODE = True
def handler(chan, host, port):

View File

@ -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',