Introducing FastRTC, a new way to build real-time AI apps
Read MoreIntroducing FastRTC, a new way to build real-time AI apps
Read MoreNew to Gradio? Start here: Getting Started
See the Release History
To install Gradio from main, run the following command:
pip install https://gradio-builds.s3.amazonaws.com/778a67913edf14cac4df383bdb77d2a6758ea45e/gradio-5.21.0-py3-none-any.whl
*Note: Setting share=True
in
launch()
will not work.
gradio.FileData(ยทยทยท)
from gradio_client import Client, FileData, handle_file
def get_url_on_server(data: FileData):
print(data['url'])
client = Client("gradio/gif_maker_main", download_files=False)
job = client.submit([handle_file("./cheetah.jpg")], api_name="/predict")
data = job.result()
video: FileData = data['video']
get_url_on_server(video)