Spanicin commited on
Commit
037eb07
·
verified ·
1 Parent(s): af2fc52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 and Answer using the minimum words you can ever use."
320
  payload = json.dumps({
321
  "input": {
322
  "chat_history": [],
323
- "app_id": "af6b2bc719a14478adcff1d71c19dc00",
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/marc_smile_enhanced.jpg'
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