File size: 267 Bytes
57843a1
 
 
 
 
 
 
 
 
14a50a8
 
57843a1
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import gradio as gr
import os




os.environ['SAT_HOME'] = '/home/user/app/sharefs/cogview-new'

def inference(text):
    os.system("""bash ./scripts/inference_cogvideo_pipeline.sh""")
    return "output/out.mp4"

gr.Interface(inference,"text","video").launch()