Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -100,20 +100,9 @@ def run(purpose,history,image,model_drop,chat_drop,choice):
|
|
100 |
out_prompt=generate(purpose,history,chat_drop)
|
101 |
history.append((purpose,out_prompt))
|
102 |
yield (history,None)
|
103 |
-
|
104 |
-
|
105 |
-
out_img=
|
106 |
-
prompt=out_prompt,
|
107 |
-
negative_prompt=None,
|
108 |
-
height=512,
|
109 |
-
width=512,
|
110 |
-
num_inference_steps=None,
|
111 |
-
guidance_scale=None,
|
112 |
-
model=loaded_model[int(model_drop)],
|
113 |
-
seed=1,
|
114 |
-
|
115 |
-
)
|
116 |
-
#out_img=model(out_prompt)
|
117 |
#return (history,None)
|
118 |
print(out_img)
|
119 |
url=f'https://johann22-chat-diffusion-describe.hf.space/file={out_img}'
|
|
|
100 |
out_prompt=generate(purpose,history,chat_drop)
|
101 |
history.append((purpose,out_prompt))
|
102 |
yield (history,None)
|
103 |
+
model=loaded_model[int(model_drop)]
|
104 |
+
|
105 |
+
out_img=model(out_prompt)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
#return (history,None)
|
107 |
print(out_img)
|
108 |
url=f'https://johann22-chat-diffusion-describe.hf.space/file={out_img}'
|