Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -283,9 +283,9 @@ def generate_video():
|
|
283 |
print('request:',request.method)
|
284 |
try:
|
285 |
if request.method == 'POST':
|
286 |
-
|
287 |
-
image_path = '/home/user/app/images/shared_image3.png'
|
288 |
-
source_image = Image.open(image_path)
|
289 |
text_prompt = request.form['text_prompt']
|
290 |
|
291 |
print('Input text prompt: ',text_prompt)
|
|
|
283 |
print('request:',request.method)
|
284 |
try:
|
285 |
if request.method == 'POST':
|
286 |
+
source_image = request.files['source_image']
|
287 |
+
# image_path = '/home/user/app/images/shared_image3.png'
|
288 |
+
# source_image = Image.open(image_path)
|
289 |
text_prompt = request.form['text_prompt']
|
290 |
|
291 |
print('Input text prompt: ',text_prompt)
|