Spaces:
Runtime error
Runtime error
LanguageBind
commited on
Commit
•
fccca34
1
Parent(s):
1054e01
Update opensora/serve/gradio_web_server.py
Browse files
opensora/serve/gradio_web_server.py
CHANGED
@@ -17,15 +17,7 @@ import gradio as gr
|
|
17 |
import numpy as np
|
18 |
from gradio.components import Textbox, Video, Image
|
19 |
from transformers import T5Tokenizer, T5EncoderModel
|
20 |
-
|
21 |
-
current_path = os.path.abspath(__file__)
|
22 |
-
parent_path = os.path.dirname(current_path)
|
23 |
-
current_path = os.path.abspath(parent_path)
|
24 |
-
parent_path = os.path.dirname(current_path)
|
25 |
-
current_path = os.path.abspath(parent_path)
|
26 |
-
parent_path = os.path.dirname(current_path)
|
27 |
-
sys.path.append(parent_path)
|
28 |
-
print(sys.path)
|
29 |
from opensora.models.ae import ae_stride_config, getae, getae_wrapper
|
30 |
from opensora.models.ae.videobase import CausalVQVAEModelWrapper, CausalVAEModelWrapper
|
31 |
from opensora.models.diffusion.latte.modeling_latte import LatteT2V
|
|
|
17 |
import numpy as np
|
18 |
from gradio.components import Textbox, Video, Image
|
19 |
from transformers import T5Tokenizer, T5EncoderModel
|
20 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
from opensora.models.ae import ae_stride_config, getae, getae_wrapper
|
22 |
from opensora.models.ae.videobase import CausalVQVAEModelWrapper, CausalVAEModelWrapper
|
23 |
from opensora.models.diffusion.latte.modeling_latte import LatteT2V
|