Update app.py
Browse files
app.py
CHANGED
|
@@ -62,8 +62,10 @@ def generate_video():
|
|
| 62 |
try:
|
| 63 |
data = request.get_json()
|
| 64 |
userprompt = data.get("duration", '').strip()
|
| 65 |
-
|
| 66 |
-
|
|
|
|
|
|
|
| 67 |
prompts=prompt.replace("**","")
|
| 68 |
print(prompts)
|
| 69 |
if prompts == '':
|
|
|
|
| 62 |
try:
|
| 63 |
data = request.get_json()
|
| 64 |
userprompt = data.get("duration", '').strip()
|
| 65 |
+
prompt1=extract_english_paragraphs(userprompt)
|
| 66 |
+
lang1=extract_native_text(userprompt)
|
| 67 |
+
prompt="### current\nCurrent is the flow of electric charge. It moves through a conductor."
|
| 68 |
+
lang="Current னு சொல்றது wire ல electron-ங்க move ஆகுற flow தான், சரி, அப்போ electron-ங்கள் நகர்ந்து இருக்காங்க, அப்புறம் அது current ஆகுது, அதனால நம்ம phone charge ஆகுறது இல்லயா, இப்போ யாருமே புரிஞ்சுக்கிட்டு இருப்பாங்க, உதாரணமா, நீங்க உங்க phone லயம் charge பண்ணுது இருக்கீங்க, யோசிச்சு பாருங்க, ஒரு bulb ல லைட் வருறது ஏன்னா current தான், இவ்ளோதான், clear ஆ இருக்கா?&&&Tamil"
|
| 69 |
prompts=prompt.replace("**","")
|
| 70 |
print(prompts)
|
| 71 |
if prompts == '':
|