From c84a67544af1ac48994be182a73d5de6a2aec1f0 Mon Sep 17 00:00:00 2001 From: dawoodkhan82 Date: Thu, 19 Nov 2020 03:02:11 -0500 Subject: [PATCH] add package version string --- gradio/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gradio/__init__.py b/gradio/__init__.py index bc36d88ec7..b9ff55429c 100644 --- a/gradio/__init__.py +++ b/gradio/__init__.py @@ -1 +1,5 @@ from gradio.interface import * # This makes it possible to import `Interface` as `gradio.Interface`. +import pkg_resources + +current_pkg_version = pkg_resources.require("gradio")[0].version +__version__ = current_pkg_version \ No newline at end of file