video / app.py
AUST001's picture
Update app.py
9ad81ed
raw
history blame contribute delete
304 Bytes
import gradio as gr
import urllib.request
url = 'http://aust001.pythonanywhere.com/photo/test.avi'
def to_black(text):
if text=='love':
urllib.request.urlretrieve(url, 'uu.avi')
return 'uu.avi'
interface = gr.Interface(fn=to_black, inputs="text", outputs="video")
interface.launch()