Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,15 @@
|
|
1 |
import copy
|
2 |
import os
|
3 |
import random
|
4 |
-
|
5 |
-
os.system('pip install dashscope')
|
6 |
import gradio as gr
|
7 |
import dashscope
|
8 |
from dashscope import VideoSynthesis
|
9 |
from examples import t2v_examples, i2v_examples
|
10 |
import time
|
11 |
|
|
|
|
|
|
|
12 |
DASHSCOPE_API_KEY = os.getenv('DASHSCOPE_API_KEY')
|
13 |
dashscope.api_key = DASHSCOPE_API_KEY
|
14 |
|
|
|
1 |
import copy
|
2 |
import os
|
3 |
import random
|
|
|
|
|
4 |
import gradio as gr
|
5 |
import dashscope
|
6 |
from dashscope import VideoSynthesis
|
7 |
from examples import t2v_examples, i2v_examples
|
8 |
import time
|
9 |
|
10 |
+
os.system('pip install pydantic dashscope')
|
11 |
+
|
12 |
+
# Set API key
|
13 |
DASHSCOPE_API_KEY = os.getenv('DASHSCOPE_API_KEY')
|
14 |
dashscope.api_key = DASHSCOPE_API_KEY
|
15 |
|