Update app.py
Browse files
app.py
CHANGED
@@ -34,6 +34,7 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
34 |
|
35 |
client = Client(MODEL)
|
36 |
client2 = Client(MODEL2)
|
|
|
37 |
|
38 |
style_list = [
|
39 |
{
|
@@ -102,7 +103,7 @@ def generate(
|
|
102 |
prompt = str(translator.translate(prompt, 'English'))
|
103 |
print(f'prompt:{prompt}')
|
104 |
seed = int(randomize_seed_fn(seed, randomize_seed))
|
105 |
-
|
106 |
|
107 |
prompt = apply_style(style, prompt)
|
108 |
strength = 0.7
|
|
|
34 |
|
35 |
client = Client(MODEL)
|
36 |
client2 = Client(MODEL2)
|
37 |
+
client_test=Client(MODEL_TEST)
|
38 |
|
39 |
style_list = [
|
40 |
{
|
|
|
103 |
prompt = str(translator.translate(prompt, 'English'))
|
104 |
print(f'prompt:{prompt}')
|
105 |
seed = int(randomize_seed_fn(seed, randomize_seed))
|
106 |
+
print(client_test.view_api())
|
107 |
|
108 |
prompt = apply_style(style, prompt)
|
109 |
strength = 0.7
|