johann22 commited on
Commit
5fa0297
β€’
1 Parent(s): f6fc0b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -59,12 +59,13 @@ def run(purpose,history,model_drop):
59
  history = ""
60
  try:
61
  out_prompt = run_gpt(purpose,history)
 
62
  except Exception as e:
63
  out_prompt = f"An Error Occured generating the prompt \n {e}"
64
  yield ("",[(purpose,out_prompt)],None)
65
  try:
66
  model=loaded_model[int(model_drop)]
67
- out_img=model(out_prompt)
68
  print(out_img)
69
  image=f'{base_url}file={out_img}'
70
  uid = uuid.uuid4()
 
59
  history = ""
60
  try:
61
  out_prompt = run_gpt(purpose,history)
62
+ print (out_prompt)
63
  except Exception as e:
64
  out_prompt = f"An Error Occured generating the prompt \n {e}"
65
  yield ("",[(purpose,out_prompt)],None)
66
  try:
67
  model=loaded_model[int(model_drop)]
68
+ out_img=model(f'{out_prompt}')
69
  print(out_img)
70
  image=f'{base_url}file={out_img}'
71
  uid = uuid.uuid4()