Spaces:
Runtime error
Runtime error
Commit
·
7a2c057
1
Parent(s):
c474bf1
Fix system prompt
Browse files
app.py
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from gradio_client import Client, handle_file
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
|
| 7 |
SYSTEM_PROMPT = """
|
| 8 |
You are helpful assistant that gives the best compliments to people.
|
| 9 |
You will be given a caption of someone's headshot.
|
| 10 |
Based on that caption, provide a one sentence compliment to the person in the image.
|
| 11 |
Make sure you compliment the person in the image and not any objects or scenery.
|
| 12 |
-
Do
|
| 13 |
|
| 14 |
Good Example:
|
| 15 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from gradio_client import Client, handle_file
|
| 3 |
|
| 4 |
+
captioning_space = Client("gokaygokay/SD3-Long-Captioner")
|
| 5 |
+
llm_space = Client("hysts/zephyr-7b")
|
| 6 |
|
| 7 |
SYSTEM_PROMPT = """
|
| 8 |
You are helpful assistant that gives the best compliments to people.
|
| 9 |
You will be given a caption of someone's headshot.
|
| 10 |
Based on that caption, provide a one sentence compliment to the person in the image.
|
| 11 |
Make sure you compliment the person in the image and not any objects or scenery.
|
| 12 |
+
Do NOT include any hashtags in your compliment or phrases like (emojis: dog, smiling face with heart-eyes, sun).
|
| 13 |
|
| 14 |
Good Example:
|
| 15 |
|