Skip to content

Commit

Permalink
Fixing import issues so that the package successfully installs on col…
Browse files Browse the repository at this point in the history
…ab notebooks (#1027)

* updated PyPi version to 2.9.0b

* added to init

* moved media_data

* formatting

* updated PyPi version to 2.9.0b2
  • Loading branch information
abidlabs authored Apr 19, 2022
1 parent 6a432c9 commit ef8b972
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion gradio.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: gradio
Version: 2.9.0b0
Version: 2.9.0b2
Summary: Python library for easily interacting with trained machine learning models
Home-page: https://github.com/gradio-app/gradio-UI
Author: Abubakar Abid, Ali Abid, Ali Abdalla, Dawood Khan, Ahsen Khaliq, Pete Allen, Ömer Faruk Özdemir
Expand Down
3 changes: 1 addition & 2 deletions gradio/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
from ffmpy import FFmpeg
from markdown_it import MarkdownIt

from gradio import processing_utils
from gradio import media_data, processing_utils
from gradio.blocks import Block
from gradio.test_data import media_data


class Component(Block):
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions gradio/test_data/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import gradio.media_data as media_data
2 changes: 1 addition & 1 deletion gradio/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.9.0b
2.9.0b2
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="gradio",
version="2.9.0b",
version="2.9.0b2",
include_package_data=True,
description="Python library for easily interacting with trained machine learning models",
author="Abubakar Abid, Ali Abid, Ali Abdalla, Dawood Khan, Ahsen Khaliq, Pete Allen, Ömer Faruk Özdemir",
Expand Down
2 changes: 1 addition & 1 deletion test/test_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import PIL

import gradio as gr
from gradio.test_data import media_data
from gradio import media_data

os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"

Expand Down
2 changes: 1 addition & 1 deletion test/test_encryptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import unittest

from gradio import encryptor, processing_utils
from gradio.test_data.media_data import BASE64_IMAGE
from gradio.media_data import BASE64_IMAGE

os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"

Expand Down
2 changes: 1 addition & 1 deletion test/test_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import PIL

import gradio as gr
from gradio.test_data import media_data
from gradio import media_data

os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"

Expand Down
3 changes: 1 addition & 2 deletions test/test_interpretation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
import numpy as np

import gradio.interpretation
from gradio import Interface
from gradio import Interface, media_data
from gradio.processing_utils import decode_base64_to_image
from gradio.test_data import media_data

os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"

Expand Down
2 changes: 1 addition & 1 deletion test/test_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import pandas as pd

import gradio as gr
from gradio.test_data import media_data
from gradio import media_data

os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"

Expand Down
2 changes: 1 addition & 1 deletion test/test_processing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from PIL import Image

import gradio as gr
from gradio.test_data import media_data
from gradio import media_data

os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"

Expand Down

0 comments on commit ef8b972

Please sign in to comment.