lunarflu HF Staff commited on
Commit
b3589d0
·
1 Parent(s): f22ff97
Files changed (1) hide show
  1. app.py +1 -18
app.py CHANGED
@@ -144,24 +144,7 @@ class MyClient(discord.Client):
144
  with open(combined_image_path, 'rb') as f:
145
  await message.reply('Here is the combined image', file=discord.File(f, 'combined_image.png'))
146
 
147
- '''
148
- # stage 2
149
- selected_index_for_stage_2 = -1
150
- custom_timesteps_2 = 'smart100' # could reset to smart50 if index was the issue
151
- seed = 362572064 # again, could randomize this seed = 362572064 seed = random.randint(0, 2**32 - 1)
152
-
153
- # predict(stage_1_result_path, selected_index_for_stage_2, seed, guidance_scale, custom_timesteps_2, number_of_inference_steps, api_name="/upscale256") -> result
154
-
155
- img = df.predict(stage_1_result_path, selected_index_for_stage_2, seed, guidance_scale, custom_timesteps_2, number_of_inference_steps, api_name="/upscale256")
156
-
157
- # Save the generated image to a file
158
- img_path = "/tmp/generated_image.png"
159
- img.save(img_path)
160
-
161
- # Send the image file as a Discord attachment
162
- with open(img_path, 'rb') as f:
163
- await message.reply(f'Here is the generated image', file=discord.File(f, 'generated_image.png'))
164
- '''
165
 
166
 
167
 
 
144
  with open(combined_image_path, 'rb') as f:
145
  await message.reply('Here is the combined image', file=discord.File(f, 'combined_image.png'))
146
 
147
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
 
149
 
150