Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -416,7 +416,7 @@ async def on_message(message):
|
|
416 |
imgCaption += f"[{await IC.image_to_text('ip.png')}]"
|
417 |
for audio in audios:
|
418 |
await audio.save("aud")
|
419 |
-
adoCaption += f"[{PRK.automatic_speech_recognition('aud')}]"
|
420 |
if audios != []:
|
421 |
adoCaption += ")"
|
422 |
if images != []:
|
@@ -451,7 +451,10 @@ async def on_message(message):
|
|
451 |
context += f"GPT4 Correct Assistant:"
|
452 |
load = random.choice(
|
453 |
[
|
454 |
-
"https://
|
|
|
|
|
|
|
455 |
]
|
456 |
)
|
457 |
output = await LLM.text_generation(context,
|
@@ -480,7 +483,8 @@ async def on_message(message):
|
|
480 |
|
481 |
e = await message.reply(embed=embed)
|
482 |
if imgp != "":
|
483 |
-
np = """lowres, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, username, watermark, signature"""
|
|
|
484 |
st = time.time()
|
485 |
if imageModel == "Stable Diffusion 2-1":
|
486 |
image, m = (await SD.text_to_image(imgp, negative_prompt=np), "Stable Diffusion 2-1")
|
|
|
416 |
imgCaption += f"[{await IC.image_to_text('ip.png')}]"
|
417 |
for audio in audios:
|
418 |
await audio.save("aud")
|
419 |
+
adoCaption += f"[{await PRK.automatic_speech_recognition('aud')}]"
|
420 |
if audios != []:
|
421 |
adoCaption += ")"
|
422 |
if images != []:
|
|
|
451 |
context += f"GPT4 Correct Assistant:"
|
452 |
load = random.choice(
|
453 |
[
|
454 |
+
"https://cdn.dribbble.com/users/744913/screenshots/4094897/media/771a495231b798c0ccf7a59a19f31946.gif",
|
455 |
+
"https://cdn.dribbble.com/users/563824/screenshots/3633228/media/b620ccb3ae8c14ea5447d159ebb1da58.gif",
|
456 |
+
"https://cdn.dribbble.com/users/563824/screenshots/4155980/media/d3828cd14ed415eb6f90310991e06f27.gif",
|
457 |
+
"https://cdn.dribbble.com/users/107759/screenshots/3498589/media/5bc45101de34a80ea71238a02f3a75b5.gif",
|
458 |
]
|
459 |
)
|
460 |
output = await LLM.text_generation(context,
|
|
|
483 |
|
484 |
e = await message.reply(embed=embed)
|
485 |
if imgp != "":
|
486 |
+
# np = """lowres, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, username, watermark, signature"""
|
487 |
+
np = ""
|
488 |
st = time.time()
|
489 |
if imageModel == "Stable Diffusion 2-1":
|
490 |
image, m = (await SD.text_to_image(imgp, negative_prompt=np), "Stable Diffusion 2-1")
|