gradio/demo/files.py
2020-08-05 10:42:52 -07:00

10 lines
161 B
Python

import gradio as gr
import random
def upload(file):
print(file.name)
with file:
return file.name
gr.Interface(upload, "file", "text").launch()