mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-01 11:45:36 +08:00
updated PyPi version
This commit is contained in:
parent
8194617977
commit
e4069a8c98
@ -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/")
|
||||
|
@ -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
|
||||
|
BIN
dist/gradio-0.9.6-py3.7.egg
vendored
BIN
dist/gradio-0.9.6-py3.7.egg
vendored
Binary file not shown.
BIN
dist/gradio-0.9.7-py3-none-any.whl
vendored
BIN
dist/gradio-0.9.7-py3-none-any.whl
vendored
Binary file not shown.
BIN
dist/gradio-0.9.7.tar.gz
vendored
BIN
dist/gradio-0.9.7.tar.gz
vendored
Binary file not shown.
@ -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
|
||||
|
2
setup.py
2
setup.py
@ -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
9
upload_to_pypi.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user