Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,15 +23,15 @@ def ask_question():
|
|
| 23 |
return jsonify({"error": "Question is required"}), 400
|
| 24 |
|
| 25 |
answer = generate_long_answer(question)
|
| 26 |
-
audio_text = generate_audio_script(answer)
|
| 27 |
lines = generate_image_script(question)
|
| 28 |
image_prompts=lines.splitlines()
|
| 29 |
fetch_images_from_prompts(image_prompts)
|
| 30 |
-
video_path = video_gen(answer)
|
| 31 |
return jsonify({
|
| 32 |
"question": question,
|
| 33 |
"answer": answer,
|
| 34 |
-
|
| 35 |
|
| 36 |
})
|
| 37 |
|
|
|
|
| 23 |
return jsonify({"error": "Question is required"}), 400
|
| 24 |
|
| 25 |
answer = generate_long_answer(question)
|
| 26 |
+
"""audio_text = generate_audio_script(answer)
|
| 27 |
lines = generate_image_script(question)
|
| 28 |
image_prompts=lines.splitlines()
|
| 29 |
fetch_images_from_prompts(image_prompts)
|
| 30 |
+
video_path = video_gen(answer)"""
|
| 31 |
return jsonify({
|
| 32 |
"question": question,
|
| 33 |
"answer": answer,
|
| 34 |
+
|
| 35 |
|
| 36 |
})
|
| 37 |
|