lunarflu HF Staff commited on
Commit
f22ff97
·
1 Parent(s): ae40b5c
Files changed (1) hide show
  1. app.py +0 -21
app.py CHANGED
@@ -144,27 +144,6 @@ 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
-
149
- selected_index_for_stage_2 = 0
150
- seed_2 = 0
151
- guidance_scale_2 = 4
152
- custom_timesteps_2 = 'smart50'
153
- number_of_inference_steps_2 = 50
154
- imgif = client.predict(stage_1_result_path,
155
- selected_index_for_stage_2,
156
- seed_2,
157
- guidance_scale_2,
158
- custom_timesteps_2,
159
- number_of_inference_steps_2,
160
- api_name='/upscale256')
161
-
162
- imgif_path = "/tmp/generated_image.png"
163
- imgif.save(imgif_path)
164
-
165
- with open(imgif_path, 'rb') as f:
166
- await message.reply(f'Here is the generated image', file=discord.File(f, 'generated_image.png'))
167
-
168
  '''
169
  # stage 2
170
  selected_index_for_stage_2 = -1
 
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