Fixing import issues so that the package successfully installs on colab notebooks (#1027)

* updated PyPi version to 2.9.0b

* added to init

* moved media_data

* formatting

* updated PyPi version to 2.9.0b2
This commit is contained in:
Abubakar Abid 2022-04-19 11:27:32 -07:00 committed by GitHub
parent 6a432c997f
commit ef8b97223d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 11 additions and 12 deletions

View File

@ -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

View File

@ -20,9 +20,8 @@ import PIL
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):

View File

@ -0,0 +1 @@
import gradio.media_data as media_data

View File

@ -1 +1 @@
2.9.0b
2.9.0b2

View File

@ -5,7 +5,7 @@ except ImportError:
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",

View File

@ -11,7 +11,7 @@ import pandas as pd
import PIL
import gradio as gr
from gradio.test_data import media_data
from gradio import media_data
os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"

View File

@ -2,7 +2,7 @@ import os
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"

View File

@ -10,7 +10,7 @@ import pandas
import PIL
import gradio as gr
from gradio.test_data import media_data
from gradio import media_data
os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"

View File

@ -5,9 +5,8 @@ from copy import deepcopy
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"

View File

@ -8,7 +8,7 @@ import numpy as np
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"

View File

@ -8,7 +8,7 @@ import numpy as np
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"