https://github.com/gradio-app/hosted-hello-world

This simple repo shows how easy it is to deploy a Gradio Hosted interface.

https://github.com/gradio-app/hosted-hello-world

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.8%) to scientific vocabulary
Last synced: 5 months ago · JSON representation

Repository

This simple repo shows how easy it is to deploy a Gradio Hosted interface.

Basic Info
  • Host: GitHub
  • Owner: gradio-app
  • Language: Python
  • Default Branch: main
  • Size: 3.91 KB
Statistics
  • Stars: 4
  • Watchers: 4
  • Forks: 7
  • Open Issues: 0
  • Releases: 0
Created about 5 years ago · Last pushed about 5 years ago
Metadata Files
Readme

README.md

hosted-hello-world

This simple repo shows how easy it is to deploy a Gradio Hosted interface. For more info on Hosted, see our introduction post.

Here's what you need in the repo:

  • A launch file --> launch.py
  • A requirements.txt file

Let's start with the launch file, this is the file that launches the gradio interface. In this case, we're wrapping a simple function:

``` import gradio

def hello(inp): return "Hello {}!".format(inp)

io = gradio.Interface(fn=hello, inputs='text', outputs='text', title='Hello World', description='The simplest Hosted interface.')
io.launch() ```

If we were to run this file locally, we would see the interface below:

The second step is to create a requirements.txt file with all the requirements that are needed to to run launch.py. In this case, the only thing we need is Gradio, so the file is has just on requirement.

gradio

Now we can deploy this by giving Gradio Github access through Hosted, and picking the right repo.

And here's the live link: https://gradio.app/g/aliabd/hosted-hello-world

Feel free to fork this repo as a starting point for your Hosted project!

Owner

  • Name: Gradio
  • Login: gradio-app
  • Kind: organization
  • Email: admin@gradio.app
  • Location: Mountain View, CA

Delightfully easy-to-use open-source tools that make machine learning easier and more accessible

GitHub Events

Total
  • Watch event: 1
  • Fork event: 1
Last Year
  • Watch event: 1
  • Fork event: 1

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels