Skip to content

Update interface.py#5

Merged
dawoodkhan82 merged 2 commits into
gradio-app:masterfrom
badbye:patch-1
Jul 22, 2019
Merged

Update interface.py#5
dawoodkhan82 merged 2 commits into
gradio-app:masterfrom
badbye:patch-1

Conversation

@badbye

@badbye badbye commented Jul 14, 2019

Copy link
Copy Markdown
Contributor

The preprocessed_input may not has a shape attribute. Here is an example:

import gradio

# A very simplistic function that capitalizes each letter in the given string
def big(x):
    return x.upper()

io = gradio.Interface(inputs="textbox", outputs="textbox", model=big, model_type='pyfunc')
io.launch(inline=True, share=True)

The `preprocessed_input` may not has a `shape` attribute.
@dawoodkhan82 dawoodkhan82 self-requested a review July 22, 2019 01:23
@dawoodkhan82 dawoodkhan82 merged commit c6c71ee into gradio-app:master Jul 22, 2019
aliabd pushed a commit that referenced this pull request Jul 9, 2020
abidlabs pushed a commit that referenced this pull request Oct 12, 2021
abidlabs added a commit that referenced this pull request Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants