Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,21 +79,24 @@ def run_inference(model_name, prompt_text):
|
|
| 79 |
|
| 80 |
def main():
|
| 81 |
with gr.Blocks() as demo:
|
| 82 |
-
gr.
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
|
|
|
|
|
|
|
|
|
| 97 |
with gr.Row():
|
| 98 |
with gr.Column(scale=1):
|
| 99 |
model_dropdown = gr.Dropdown(
|
|
@@ -102,12 +105,13 @@ def main():
|
|
| 102 |
"OpenSora-v1-HQ-16x256x256.pth",
|
| 103 |
"OpenSora-v1-HQ-16x512x512.pth"
|
| 104 |
],
|
| 105 |
-
label="
|
| 106 |
)
|
| 107 |
-
prompt_text = gr.Textbox(
|
| 108 |
submit_button = gr.Button("Run Inference")
|
| 109 |
|
| 110 |
-
|
|
|
|
| 111 |
|
| 112 |
submit_button.click(
|
| 113 |
fn=run_inference,
|
|
@@ -118,4 +122,4 @@ def main():
|
|
| 118 |
demo.launch()
|
| 119 |
|
| 120 |
if __name__ == "__main__":
|
| 121 |
-
main()
|
|
|
|
| 79 |
|
| 80 |
def main():
|
| 81 |
with gr.Blocks() as demo:
|
| 82 |
+
with gr.Row():
|
| 83 |
+
with gr.Column():
|
| 84 |
+
gr.HTML(
|
| 85 |
+
"""
|
| 86 |
+
<h1 style='text-align: center'>
|
| 87 |
+
Open-Sora: Democratizing Efficient Video Production for All
|
| 88 |
+
</h1>
|
| 89 |
+
"""
|
| 90 |
+
)
|
| 91 |
+
gr.HTML(
|
| 92 |
+
"""
|
| 93 |
+
<h3 style='text-align: center'>
|
| 94 |
+
Follow me for more!
|
| 95 |
+
<a href='https://twitter.com/kadirnar_ai' target='_blank'>Twitter</a> | <a href='https://github.com/kadirnar' target='_blank'>Github</a> | <a href='https://www.linkedin.com/in/kadir-nar/' target='_blank'>Linkedin</a>
|
| 96 |
+
</h3>
|
| 97 |
+
"""
|
| 98 |
+
)
|
| 99 |
+
|
| 100 |
with gr.Row():
|
| 101 |
with gr.Column(scale=1):
|
| 102 |
model_dropdown = gr.Dropdown(
|
|
|
|
| 105 |
"OpenSora-v1-HQ-16x256x256.pth",
|
| 106 |
"OpenSora-v1-HQ-16x512x512.pth"
|
| 107 |
],
|
| 108 |
+
label=""
|
| 109 |
)
|
| 110 |
+
prompt_text = gr.Textbox(value="", placeholder="Enter prompt text here", lines=4)
|
| 111 |
submit_button = gr.Button("Run Inference")
|
| 112 |
|
| 113 |
+
with gr.Column(scale=1.5):
|
| 114 |
+
output_video = gr.Video()
|
| 115 |
|
| 116 |
submit_button.click(
|
| 117 |
fn=run_inference,
|
|
|
|
| 122 |
demo.launch()
|
| 123 |
|
| 124 |
if __name__ == "__main__":
|
| 125 |
+
main()
|