johann22 commited on
Commit
e3fecd1
β€’
1 Parent(s): 0ea588e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ now = datetime.now()
17
  date_time_str = now.strftime("%Y-%m-%d %H:%M:%S")
18
 
19
  client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
20
- #model = gr.load("models/stabilityai/sdxl-turbo")
21
  history = []
22
 
23
  def infer(txt):
@@ -64,7 +64,7 @@ def run(purpose,history,model_drop):
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}'
 
17
  date_time_str = now.strftime("%Y-%m-%d %H:%M:%S")
18
 
19
  client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
20
+ model = gr.load("models/stabilityai/sdxl-turbo")
21
  history = []
22
 
23
  def infer(txt):
 
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}'