Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ now = datetime.now()
|
|
18 |
date_time_str = now.strftime("%Y-%m-%d %H:%M:%S")
|
19 |
|
20 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
21 |
-
|
22 |
history = []
|
23 |
|
24 |
def infer(txt):
|
@@ -66,7 +66,7 @@ def run(purpose,history,model_drop):
|
|
66 |
out_prompt = f"An Error Occured generating the prompt \n {e}"
|
67 |
yield ("",[(purpose,out_prompt)],None)
|
68 |
try:
|
69 |
-
model=loaded_model[int(model_drop)]
|
70 |
out_img=model(out_prompt)
|
71 |
print(out_img)
|
72 |
image=f'{base_url}file={out_img}'
|
|
|
18 |
date_time_str = now.strftime("%Y-%m-%d %H:%M:%S")
|
19 |
|
20 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
21 |
+
model = gr.load("models/dreamlike-art/dreamlike-photoreal-2.0")
|
22 |
history = []
|
23 |
|
24 |
def infer(txt):
|
|
|
66 |
out_prompt = f"An Error Occured generating the prompt \n {e}"
|
67 |
yield ("",[(purpose,out_prompt)],None)
|
68 |
try:
|
69 |
+
#model=loaded_model[int(model_drop)]
|
70 |
out_img=model(out_prompt)
|
71 |
print(out_img)
|
72 |
image=f'{base_url}file={out_img}'
|