lunarflu HF Staff commited on
Commit
154eb2f
·
1 Parent(s): ab408fc

dfif alpha 0.2

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -115,7 +115,18 @@ class MyClient(discord.Client):
115
 
116
  #predict
117
  #was: 1,4,7.0
118
- stage_1_results, stage_1_param_path, stage_1_result_path = df.predict("gradio written on a wall", "blur", 1,1,7.0, 'smart100',50, api_name="/generate64")
 
 
 
 
 
 
 
 
 
 
 
119
 
120
  # Assuming stage_1_results contains the path to the directory
121
  png_files = [f for f in os.listdir(stage_1_results) if f.endswith('.png')]
 
115
 
116
  #predict
117
  #was: 1,4,7.0
118
+ #predict
119
+ #(prompt, negative_prompt, seed, number_of_images, guidance_scale,custom_timesteps_1, number_of_inference_steps, api_name="/generate64")
120
+ #-> (stage_1_results, stage_1_param_path, stage_1_result_path)
121
+
122
+ # random seed
123
+ current_time = int(time.time())
124
+ random.seed(current_time)
125
+ seed = random.randint(1, 10000)
126
+
127
+ stage_1_results, stage_1_param_path, stage_1_result_path = df.predict("llama", "blur", seed,1,7.0, 'smart100',50, api_name="/generate64")
128
+
129
+ #stage_1_results, stage_1_param_path, stage_1_result_path = df.predict("gradio written on a wall", "blur", 1,1,7.0, 'smart100',50, api_name="/generate64")
130
 
131
  # Assuming stage_1_results contains the path to the directory
132
  png_files = [f for f in os.listdir(stage_1_results) if f.endswith('.png')]