updated PyPi version

This commit is contained in:
Abubakar Abid 2020-12-08 08:04:29 -06:00
parent 0ad396ae65
commit e0fcfdc9fd
5 changed files with 12 additions and 7 deletions

View File

@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: gradio
Version: 1.3.1
Version: 1.3.2
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

@ -7,6 +7,7 @@ gradio/embeddings.py
gradio/inputs.py
gradio/interface.py
gradio/interpretation.py
gradio/launches.json
gradio/networking.py
gradio/notebook.py
gradio/outputs.py

View File

@ -1,7 +1,7 @@
numpy
requests
Flask==1.1.1
Flask-Cors==3.0.8
Flask>=1.1.1
Flask-Cors>=3.0.8
flask-cachebuster
paramiko
scipy

View File

@ -49,7 +49,7 @@ class Interface:
title=None, description=None, article=None, thumbnail=None,
server_port=None, server_name=networking.LOCALHOST_NAME,
allow_screenshot=True, allow_flagging=True,
embedding="default", flagging_dir="flagged", analytics_enabled=True):
embedding=None, flagging_dir="flagged", analytics_enabled=True):
"""
Parameters:
@ -199,7 +199,8 @@ class Interface:
"thumbnail": self.thumbnail,
"allow_screenshot": self.allow_screenshot,
"allow_flagging": self.allow_flagging,
"allow_interpretation": self.interpretation is not None
"allow_interpretation": self.interpretation is not None,
"allow_embedding": self.embedding is not None,
}
try:
param_names = inspect.getfullargspec(self.predict[0])[0]

View File

@ -51,8 +51,8 @@ function gradio(config, fn, target, example_file_path) {
<button class="run_examples examples-content">Run All</button>
<button class="load_prev examples-content">Load Previous <em>(CTRL + &larr;)</em></button>
<button class="load_next examples-content">Load Next <em>(CTRL + &rarr;)</em></button>
<button class="order_similar examples-content">Order by Similarity</button>
<button class="view_embeddings examples-content">View Embeddings</button>
<button class="order_similar examples-content embedding">Order by Similarity</button>
<button class="view_embeddings examples-content embedding">View Embeddings</button>
<button class="update_embeddings embeddings-content invisible">Update Embeddings</button>
<button class="view_examples embeddings-content invisible">View Examples</button>
<div class="pages invisible">Page:</div>
@ -200,6 +200,9 @@ function gradio(config, fn, target, example_file_path) {
}
target.find(".clear").click(clear_all);
if (!config["allow_embedding"]) {
target.find(".embedding").css("visibility", "hidden");
}
if (!config["allow_screenshot"] && !config["allow_flagging"] && !config["allow_interpretation"]) {
target.find(".screenshot, .record, .flag, .interpret").css("visibility", "hidden");
} else {