Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ stable_diffusion = gr.Blocks.load(name="spaces/runwayml/stable-diffusion-v1-5")
|
|
18 |
def get_images(username):
|
19 |
prompt_string = query(username)
|
20 |
prompt_list = [element.split(". ")[1] for element in prompt_string.split(", ")]
|
21 |
-
prompt_list_prepend = [f"
|
22 |
print(prompt_list_prepend)
|
23 |
|
24 |
image_dirs = []
|
@@ -123,7 +123,8 @@ def query(username):
|
|
123 |
@cinnamontoastken: Went out for a Karaoke night with some friends but when it was my turn to sing all that came out was Chris Pratts voice.
|
124 |
|
125 |
Concepts: 1. resident evil zombies, 2. a man wearing a turtle neck and gold chain, 3. dad clothes, 4. pc setup, 5. silent hill game, 6. youtube, 7. elden ring, 8. australia, 9. karaoke set
|
126 |
-
|
|
|
127 |
Twitter stream: {twitter_stream}
|
128 |
Concepts:
|
129 |
|
|
|
18 |
def get_images(username):
|
19 |
prompt_string = query(username)
|
20 |
prompt_list = [element.split(". ")[1] for element in prompt_string.split(", ")]
|
21 |
+
prompt_list_prepend = [f"an photo of {item}, photorealistic, coherent, high quality, rendered in unreal engine" for item in prompt_list]
|
22 |
print(prompt_list_prepend)
|
23 |
|
24 |
image_dirs = []
|
|
|
123 |
@cinnamontoastken: Went out for a Karaoke night with some friends but when it was my turn to sing all that came out was Chris Pratts voice.
|
124 |
|
125 |
Concepts: 1. resident evil zombies, 2. a man wearing a turtle neck and gold chain, 3. dad clothes, 4. pc setup, 5. silent hill game, 6. youtube, 7. elden ring, 8. australia, 9. karaoke set
|
126 |
+
|
127 |
+
Now, provide the concepts for following twitter stream:
|
128 |
Twitter stream: {twitter_stream}
|
129 |
Concepts:
|
130 |
|