alexkueck commited on
Commit
50f03c4
1 Parent(s): e89d986

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -395,6 +395,7 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
395
  #llm = ChatOpenAI(model_name = MODEL_NAME_OAI_ZEICHNEN, openai_api_key = openai_api_key, temperature=temperature)#, top_p = top_p)
396
  data = {"inputs": prompt}
397
  response = requests.post(API_URL, headers=HEADERS, json=data)
 
398
  else:
399
  print("OpenAI normal.......................")
400
  llm = ChatOpenAI(model_name = MODEL_NAME, openai_api_key = openai_api_key, temperature=temperature)#, top_p = top_p)
@@ -437,7 +438,7 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
437
  #Bild ausgeben
438
  image = Image.open(io.BytesIO(result))
439
  history[-1][1] = (file.name,) #image
440
- print("history......................")
441
  print(history)
442
  return history, "Stop: Success"
443
  else:
 
395
  #llm = ChatOpenAI(model_name = MODEL_NAME_OAI_ZEICHNEN, openai_api_key = openai_api_key, temperature=temperature)#, top_p = top_p)
396
  data = {"inputs": prompt}
397
  response = requests.post(API_URL, headers=HEADERS, json=data)
398
+ print("fertig Bild")
399
  else:
400
  print("OpenAI normal.......................")
401
  llm = ChatOpenAI(model_name = MODEL_NAME, openai_api_key = openai_api_key, temperature=temperature)#, top_p = top_p)
 
438
  #Bild ausgeben
439
  image = Image.open(io.BytesIO(result))
440
  history[-1][1] = (file.name,) #image
441
+ print("history zeichnen......................")
442
  print(history)
443
  return history, "Stop: Success"
444
  else: