gifs in readme (#1298)

* hello world

* gif

* sepia

* replace calc gifs

* crop calculator gif

* final gifs

Co-authored-by: Dawood <dawoodkhan82@gmail.com>
Co-authored-by: AK391 <81195143+AK391@users.noreply.github.com>
This commit is contained in:
Abubakar Abid 2022-05-16 17:33:14 -04:00 committed by GitHub
parent f8aa122074
commit ed8301d658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 6 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 KiB

After

Width:  |  Height:  |  Size: 723 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 KiB

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 219 KiB

View File

@ -1,6 +1,7 @@
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import gradio as gr

Binary file not shown.

Before

Width:  |  Height:  |  Size: 346 KiB

After

Width:  |  Height:  |  Size: 424 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 638 KiB

View File

@ -3417,7 +3417,7 @@ class Plot(Changeable, Clearable, IOComponent):
def __init__(
self,
value,
value: Optional[Any] = None,
*,
label: Optional[str] = None,
show_label: bool = True,
@ -3468,7 +3468,9 @@ class Plot(Changeable, Clearable, IOComponent):
(str): plot type
(str): plot base64 or json
"""
if isinstance(y, (ModuleType, matplotlib.pyplot.Figure)):
if y is None:
return None
elif isinstance(y, (ModuleType, matplotlib.pyplot.Figure)):
dtype = "matplotlib"
out_y = processing_utils.encode_plot_to_base64(y)
elif isinstance(y, dict):