Update app.py
Browse files
app.py
CHANGED
@@ -316,11 +316,11 @@ def openai_chat_avatar(text_prompt):
|
|
316 |
|
317 |
def ryzedb_chat_avatar(question):
|
318 |
url = "https://inference.dev.ryzeai.ai/chat/stream"
|
319 |
-
question = question + ". Summarize
|
320 |
payload = json.dumps({
|
321 |
"input": {
|
322 |
"chat_history": [],
|
323 |
-
"app_id": "
|
324 |
"question": question
|
325 |
},
|
326 |
"config": {}
|
@@ -369,7 +369,7 @@ def generate_video():
|
|
369 |
try:
|
370 |
if request.method == 'POST':
|
371 |
# source_image = request.files['source_image']
|
372 |
-
image_path = '/home/user/app/images/
|
373 |
source_image = Image.open(image_path)
|
374 |
text_prompt = request.form['text_prompt']
|
375 |
|
|
|
316 |
|
317 |
def ryzedb_chat_avatar(question):
|
318 |
url = "https://inference.dev.ryzeai.ai/chat/stream"
|
319 |
+
question = question + ". Summarize your answer using the minimum words you can ever use."
|
320 |
payload = json.dumps({
|
321 |
"input": {
|
322 |
"chat_history": [],
|
323 |
+
"app_id": "6f1966fc77894dde8ce361f4714d1a1b",
|
324 |
"question": question
|
325 |
},
|
326 |
"config": {}
|
|
|
369 |
try:
|
370 |
if request.method == 'POST':
|
371 |
# source_image = request.files['source_image']
|
372 |
+
image_path = '/home/user/app/images/avatar.jpg'
|
373 |
source_image = Image.open(image_path)
|
374 |
text_prompt = request.form['text_prompt']
|
375 |
|