Spaces:
Running
on
Zero
Running
on
Zero
fancyfeast
commited on
Commit
·
cfe04ee
1
Parent(s):
e6a1a57
Prepend with score tag, and added some examples.
Browse files
app.py
CHANGED
|
@@ -68,7 +68,7 @@ def respond(
|
|
| 68 |
t = Thread(target=model.generate, kwargs=generate_kwargs)
|
| 69 |
t.start()
|
| 70 |
|
| 71 |
-
outputs = []
|
| 72 |
for text in streamer:
|
| 73 |
outputs.append(text)
|
| 74 |
yield "".join(outputs)
|
|
@@ -88,6 +88,14 @@ demo = gr.ChatInterface(
|
|
| 88 |
label="Top-p (nucleus sampling)",
|
| 89 |
),
|
| 90 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
)
|
| 92 |
|
| 93 |
|
|
|
|
| 68 |
t = Thread(target=model.generate, kwargs=generate_kwargs)
|
| 69 |
t.start()
|
| 70 |
|
| 71 |
+
outputs = ["score_7_up,"]
|
| 72 |
for text in streamer:
|
| 73 |
outputs.append(text)
|
| 74 |
yield "".join(outputs)
|
|
|
|
| 88 |
label="Top-p (nucleus sampling)",
|
| 89 |
),
|
| 90 |
],
|
| 91 |
+
examples=[
|
| 92 |
+
"Please write a random prompt.",
|
| 93 |
+
"I'd like an image based on the tags: black and white, two women, gym, minimalist design, exposed beams, kneeling, holding head, casual wear.",
|
| 94 |
+
"Can you create an image of a woman hiking and resting on a rock in a beautiful forest with mountains?",
|
| 95 |
+
"can u make a creepy hallway pic, like something out of a weird dream, with shadows and a mysterious figure at the end? maybe some reds and blacks, make it look kinda eerie and otherworldly pls",
|
| 96 |
+
"Beach sunset with silhouettes on rocks and birds flying",
|
| 97 |
+
],
|
| 98 |
+
cache_examples=False,
|
| 99 |
)
|
| 100 |
|
| 101 |
|