gradio/demo/files.py

9 lines
212 B
Python
Raw Normal View History

2020-08-06 01:42:52 +08:00
import gradio as gr
import random
def upload(file):
print(file.name)
2020-08-11 03:30:15 +08:00
return "/mnt/c/Users/aliab/projects/gradio/gradio/static/js/interfaces/output/file.js"
2020-08-06 01:42:52 +08:00
2020-08-11 03:30:15 +08:00
gr.Interface(upload, "file", "file").launch()