updated PyPi version

This commit is contained in:
Abubakar Abid 2020-07-06 17:18:33 -05:00
parent 8194617977
commit e4069a8c98
8 changed files with 15 additions and 3 deletions

View File

@ -14,6 +14,8 @@ from gradio.tunneling import create_tunnel
import urllib.request
from shutil import copyfile
import requests
import os
INITIAL_PORT_VALUE = (
7860
@ -21,7 +23,7 @@ INITIAL_PORT_VALUE = (
TRY_NUM_PORTS = (
100
) # Number of ports to try before giving up and throwing an exception.
LOCALHOST_NAME = "127.0.0.1"
LOCALHOST_NAME = os.getenv('GRADIO_SERVER_NAME', "127.0.0.1")
GRADIO_API_SERVER = "https://api.gradio.app/v1/tunnel-request"
STATIC_TEMPLATE_LIB = pkg_resources.resource_filename("gradio", "templates/")

View File

@ -42,6 +42,7 @@ class AbstractOutput(ABC):
"""
return {}
class Label(AbstractOutput):
def __init__(self, num_top_classes=None, label=None):
self.num_top_classes = num_top_classes

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: gradio
Version: 0.9.7
Version: 0.9.8
Summary: Python library for easily interacting with trained machine learning models
Home-page: https://github.com/gradio-app/gradio-UI
Author: Abubakar Abid

View File

@ -5,7 +5,7 @@ except ImportError:
setup(
name='gradio',
version='0.9.7',
version='0.9.8',
include_package_data=True,
description='Python library for easily interacting with trained machine learning models',
author='Abubakar Abid',

9
upload_to_pypi.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
echo "Make sure to update the version number!!!"
rm dist/*
python setup.py sdist bdist_wheel
python -m twine upload dist/*
git add -A
git commit -m "updated PyPi version"
git push origin master