Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,15 +40,13 @@ MODEL_OPTIONS = {
|
|
| 40 |
# Example prompts
|
| 41 |
# ----------------------------
|
| 42 |
EXAMPLES = [
|
| 43 |
-
"
|
| 44 |
"I’ll teach you a concept. Repeat it back to me in simple words: Solar panels turn sunlight into electricity.",
|
| 45 |
"Here’s a new phrase: 'The sea is calm today.' Try saying it in Basque.",
|
| 46 |
"Let’s practice style: noir detective. Write one short sentence about Gros in that style.",
|
| 47 |
"Here’s a Shakespeare line: 'All the world’s a stage.' What do you think it means?",
|
| 48 |
"Read a Dickens passage and tell me how it feels — happy, sad, or something else?",
|
| 49 |
-
"
|
| 50 |
-
"Summarize this text in two sentences, then say if it sounds optimistic or pessimistic.",
|
| 51 |
-
"Read a short story and tell me what part you liked the most.",
|
| 52 |
"I’ll give you a sentence with a mistake: 'He go to school yesterday.' Can you fix it?"
|
| 53 |
]
|
| 54 |
|
|
@@ -179,7 +177,6 @@ def chat(user_text, model_label, blocks_json):
|
|
| 179 |
|
| 180 |
return gen_text, metrics
|
| 181 |
|
| 182 |
-
|
| 183 |
def parse_blocks_editor(text, fallback):
|
| 184 |
if not text or not text.strip():
|
| 185 |
return fallback
|
|
@@ -247,7 +244,7 @@ def launch():
|
|
| 247 |
)
|
| 248 |
with gr.Row():
|
| 249 |
user_in = gr.Textbox(
|
| 250 |
-
label="Your message",
|
| 251 |
placeholder="Start a conversation or choose an example below...",
|
| 252 |
lines=3
|
| 253 |
)
|
|
|
|
| 40 |
# Example prompts
|
| 41 |
# ----------------------------
|
| 42 |
EXAMPLES = [
|
| 43 |
+
"Tell me a about the oldest language in Europe, Euskera.",
|
| 44 |
"I’ll teach you a concept. Repeat it back to me in simple words: Solar panels turn sunlight into electricity.",
|
| 45 |
"Here’s a new phrase: 'The sea is calm today.' Try saying it in Basque.",
|
| 46 |
"Let’s practice style: noir detective. Write one short sentence about Gros in that style.",
|
| 47 |
"Here’s a Shakespeare line: 'All the world’s a stage.' What do you think it means?",
|
| 48 |
"Read a Dickens passage and tell me how it feels — happy, sad, or something else?",
|
| 49 |
+
"Summarize this paragraph....",
|
|
|
|
|
|
|
| 50 |
"I’ll give you a sentence with a mistake: 'He go to school yesterday.' Can you fix it?"
|
| 51 |
]
|
| 52 |
|
|
|
|
| 177 |
|
| 178 |
return gen_text, metrics
|
| 179 |
|
|
|
|
| 180 |
def parse_blocks_editor(text, fallback):
|
| 181 |
if not text or not text.strip():
|
| 182 |
return fallback
|
|
|
|
| 244 |
)
|
| 245 |
with gr.Row():
|
| 246 |
user_in = gr.Textbox(
|
| 247 |
+
label="Your short message with clear instruction",
|
| 248 |
placeholder="Start a conversation or choose an example below...",
|
| 249 |
lines=3
|
| 250 |
)
|