0.3 more inputs test
Browse filesseed = random.randint(0, 2**32 - 1)
prompt = message.content[12:].strip()
number_of_images = 4
df.predict(prompt, "blur", seed,number_of_images,7.0, 'smart100',50, api_name="/generate64")
app.py
CHANGED
@@ -19,6 +19,8 @@ import time
|
|
19 |
|
20 |
#todos
|
21 |
#alert
|
|
|
|
|
22 |
|
23 |
# Get Gradio client
|
24 |
jojogan = gradio_client.Client("akhaliq/JoJoGAN")
|
@@ -120,12 +122,16 @@ class MyClient(discord.Client):
|
|
120 |
#(prompt, negative_prompt, seed, number_of_images, guidance_scale,custom_timesteps_1, number_of_inference_steps, api_name="/generate64")
|
121 |
#-> (stage_1_results, stage_1_param_path, stage_1_result_path)
|
122 |
|
|
|
|
|
|
|
|
|
123 |
# random seed
|
124 |
current_time = int(time.time())
|
125 |
random.seed(current_time)
|
126 |
-
seed = random.randint(
|
127 |
|
128 |
-
stage_1_results, stage_1_param_path, stage_1_result_path = df.predict(
|
129 |
|
130 |
#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")
|
131 |
|
|
|
19 |
|
20 |
#todos
|
21 |
#alert
|
22 |
+
#stable diffusion upscale
|
23 |
+
#buttons for deepfloydIF (1,2,3,4)
|
24 |
|
25 |
# Get Gradio client
|
26 |
jojogan = gradio_client.Client("akhaliq/JoJoGAN")
|
|
|
122 |
#(prompt, negative_prompt, seed, number_of_images, guidance_scale,custom_timesteps_1, number_of_inference_steps, api_name="/generate64")
|
123 |
#-> (stage_1_results, stage_1_param_path, stage_1_result_path)
|
124 |
|
125 |
+
# custom input
|
126 |
+
prompt = message.content[12:].strip()
|
127 |
+
number_of_images = 4
|
128 |
+
|
129 |
# random seed
|
130 |
current_time = int(time.time())
|
131 |
random.seed(current_time)
|
132 |
+
seed = random.randint(0, 2**32 - 1)
|
133 |
|
134 |
+
stage_1_results, stage_1_param_path, stage_1_result_path = df.predict(prompt, "blur", seed,number_of_images,7.0, 'smart100',50, api_name="/generate64")
|
135 |
|
136 |
#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")
|
137 |
|