Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def get_images(username):
|
|
| 33 |
sd_output.append(os.path.join(image_dir, filename))
|
| 34 |
break
|
| 35 |
|
| 36 |
-
return sd_output
|
| 37 |
|
| 38 |
|
| 39 |
|
|
@@ -51,14 +51,15 @@ with gr.Blocks(theme="gradio/soft") as demo:
|
|
| 51 |
|
| 52 |
|
| 53 |
with gr.Column(elem_id="generated-gallery"):
|
| 54 |
-
|
|
|
|
| 55 |
|
| 56 |
|
| 57 |
enter_username.click(get_images,
|
| 58 |
inputs = [
|
| 59 |
input_text
|
| 60 |
],
|
| 61 |
-
outputs = [sd_output]
|
| 62 |
)
|
| 63 |
|
| 64 |
|
|
@@ -109,7 +110,7 @@ def query(username):
|
|
| 109 |
@mervenoyann: paris is never cold, people are underdressed
|
| 110 |
@mervenoyann: my all time favorite books are Meditations by Marcus Aurelius & Discourses by Epictetus, makes your skin thicker and you more resilient to challenges of life
|
| 111 |
|
| 112 |
-
Concepts: 1. Turkish flag, 2. DJ set, 3. hugging face, 4. robot, 5. pastry, 6. mediterrenean, 7. github, 8. baguette bread, 9.
|
| 113 |
|
| 114 |
Twitter stream:
|
| 115 |
@cinnamontoastken: Well im suck again, but imma stream some resident evil 4 if you wanna chill
|
|
@@ -120,11 +121,24 @@ def query(username):
|
|
| 120 |
@cinnamontoastken: Every video I make
|
| 121 |
@cinnamontoastken: THERE IS TOO MUCH TO DO IN ELDEN RING
|
| 122 |
@cinnamontoastken: Overall my move to Australia has been pretty great.
|
| 123 |
-
@cinnamontoastken: Went out for a Karaoke night with some friends but when it was my turn to sing
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
Twitter stream: {twitter_stream}
|
| 129 |
Concepts:
|
| 130 |
|
|
@@ -138,6 +152,5 @@ def query(username):
|
|
| 138 |
#######
|
| 139 |
|
| 140 |
|
| 141 |
-
#gr.Interface(query, inputs="text", outputs=gr.Textbox(lines=10), theme="gstaff/xkcd").launch(debug=True)
|
| 142 |
|
| 143 |
-
demo.launch(debug=True)
|
|
|
|
| 33 |
sd_output.append(os.path.join(image_dir, filename))
|
| 34 |
break
|
| 35 |
|
| 36 |
+
return prompt_string, sd_output
|
| 37 |
|
| 38 |
|
| 39 |
|
|
|
|
| 51 |
|
| 52 |
|
| 53 |
with gr.Column(elem_id="generated-gallery"):
|
| 54 |
+
openai_output = gr.Textbox(lines=4)
|
| 55 |
+
sd_output = gr.Gallery().style(grid=3, height="auto")
|
| 56 |
|
| 57 |
|
| 58 |
enter_username.click(get_images,
|
| 59 |
inputs = [
|
| 60 |
input_text
|
| 61 |
],
|
| 62 |
+
outputs = [openai_output, sd_output]
|
| 63 |
)
|
| 64 |
|
| 65 |
|
|
|
|
| 110 |
@mervenoyann: paris is never cold, people are underdressed
|
| 111 |
@mervenoyann: my all time favorite books are Meditations by Marcus Aurelius & Discourses by Epictetus, makes your skin thicker and you more resilient to challenges of life
|
| 112 |
|
| 113 |
+
Concepts: 1. Turkish flag, 2. DJ set, 3. hugging face, 4. robot, 5. pastry, 6. mediterrenean, 7. github, 8. baguette bread, 9. meditations
|
| 114 |
|
| 115 |
Twitter stream:
|
| 116 |
@cinnamontoastken: Well im suck again, but imma stream some resident evil 4 if you wanna chill
|
|
|
|
| 121 |
@cinnamontoastken: Every video I make
|
| 122 |
@cinnamontoastken: THERE IS TOO MUCH TO DO IN ELDEN RING
|
| 123 |
@cinnamontoastken: Overall my move to Australia has been pretty great.
|
| 124 |
+
@cinnamontoastken: Went out for a Karaoke night with some friends but when it was my turn to sing.
|
| 125 |
|
| 126 |
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
|
| 127 |
|
| 128 |
+
Twitter stream:
|
| 129 |
+
@jacksepticeye: Meet Sonny! Our brand new coffee mascot! He’s brewing up some fun.
|
| 130 |
+
@jacksepticeye: This World Cup final is insane!!!
|
| 131 |
+
@jacksepticeye: I'm going to be on The Late Late Show in Ireland again this Friday!
|
| 132 |
+
@jacksepticeye: My next video will be my 5,000th upload
|
| 133 |
+
@jacksepticeye: CAT GAME 🐈 https://youtube.com/watch?v=OaE_UPIfiAo
|
| 134 |
+
@jacksepticeye: Happy Valentine’s Day ❤️ I hope you feel loved today, even if that love has to come from yourself. Treat yourself. Evelien surprised me 😊
|
| 135 |
+
@jacksepticeye: Starting a Let’s Play channel with Tom Holland
|
| 136 |
+
@jacksepticeye: I normally never do reviews but I couldn’t NOT talk about Dune! https://youtu.be/yh9Evgt6ZBg
|
| 137 |
+
@jacksepticeye: Spider-Man 2 Can’t wait!!
|
| 138 |
+
|
| 139 |
+
Concepts: 1. coffee 2. football 3. Ireland 4. video 5. cat 6. love 7. gaming 8. Dune 9. spider-man
|
| 140 |
+
|
| 141 |
+
Now, provide the list of 9 concepts for following twitter stream:
|
| 142 |
Twitter stream: {twitter_stream}
|
| 143 |
Concepts:
|
| 144 |
|
|
|
|
| 152 |
#######
|
| 153 |
|
| 154 |
|
|
|
|
| 155 |
|
| 156 |
+
demo.queue().launch(debug=True)
|