[dfif] api_name = '/generate64'
Browse files
app.py
CHANGED
@@ -211,6 +211,7 @@ async def deepfloydif(ctx, *, prompt: str):
|
|
211 |
guidance_scale = 7
|
212 |
custom_timesteps_1 = 'smart50'
|
213 |
number_of_inference_steps = 50
|
|
|
214 |
|
215 |
await thread.send(f'{ctx.author.mention}Generating images in thread, can take ~1 minute...')
|
216 |
|
@@ -225,7 +226,7 @@ async def deepfloydif(ctx, *, prompt: str):
|
|
225 |
|
226 |
stage_1_results, stage_1_param_path, stage_1_result_path = await asyncio.get_running_loop().run_in_executor(
|
227 |
None, df.predict, prompt, negative_prompt, seed, number_of_images, guidance_scale, custom_timesteps_1, number_of_inference_steps,
|
228 |
-
api_name
|
229 |
|
230 |
partialpath = stage_1_result_path[5:] #magic for later
|
231 |
except Exception as e:
|
|
|
211 |
guidance_scale = 7
|
212 |
custom_timesteps_1 = 'smart50'
|
213 |
number_of_inference_steps = 50
|
214 |
+
api_name = '/generate64'
|
215 |
|
216 |
await thread.send(f'{ctx.author.mention}Generating images in thread, can take ~1 minute...')
|
217 |
|
|
|
226 |
|
227 |
stage_1_results, stage_1_param_path, stage_1_result_path = await asyncio.get_running_loop().run_in_executor(
|
228 |
None, df.predict, prompt, negative_prompt, seed, number_of_images, guidance_scale, custom_timesteps_1, number_of_inference_steps,
|
229 |
+
api_name)
|
230 |
|
231 |
partialpath = stage_1_result_path[5:] #magic for later
|
232 |
except Exception as e:
|