Spaces:
Running
Running
backup
Browse files- app.py +6 -4
- instructions/page2.jpg +0 -0
app.py
CHANGED
|
@@ -215,10 +215,12 @@ def get_random_sample(username):
|
|
| 215 |
|
| 216 |
return {
|
| 217 |
"post_id": sample["post_id"],
|
| 218 |
-
"instruction": '
|
| 219 |
-
"
|
|
|
|
|
|
|
| 220 |
+ sample["simplified_instruction"]
|
| 221 |
-
+
|
| 222 |
"source_image": sample["source_image"],
|
| 223 |
"image_a": image_a,
|
| 224 |
"image_b": image_b,
|
|
@@ -510,7 +512,7 @@ with gr.Blocks() as demo:
|
|
| 510 |
simplified_instruction = gr.Textbox(
|
| 511 |
label="Simplified Instruction", show_label=True, visible=False
|
| 512 |
)
|
| 513 |
-
instruction = gr.
|
| 514 |
|
| 515 |
with gr.Row():
|
| 516 |
with gr.Column():
|
|
|
|
| 215 |
|
| 216 |
return {
|
| 217 |
"post_id": sample["post_id"],
|
| 218 |
+
"instruction": '<div style="font-size: 1.8em; font-weight: bold; padding: 20px; background-color: white; border-radius: 10px; margin: 10px;"><span style="color: #888888;">Request:</span> <span style="color: black;">'
|
| 219 |
+
+ sample["instruction"]
|
| 220 |
+
+ "</span></div>",
|
| 221 |
+
"simplified_instruction": '<div style="font-size: 1.8em; font-weight: bold; padding: 20px; background-color: white; border-radius: 10px; margin: 10px;"><span style="color: #888888;">Request:</span> <span style="color: black;">'
|
| 222 |
+ sample["simplified_instruction"]
|
| 223 |
+
+ "</span></div>",
|
| 224 |
"source_image": sample["source_image"],
|
| 225 |
"image_a": image_a,
|
| 226 |
"image_b": image_b,
|
|
|
|
| 512 |
simplified_instruction = gr.Textbox(
|
| 513 |
label="Simplified Instruction", show_label=True, visible=False
|
| 514 |
)
|
| 515 |
+
instruction = gr.HTML(label="Original Instruction", show_label=True)
|
| 516 |
|
| 517 |
with gr.Row():
|
| 518 |
with gr.Column():
|
instructions/page2.jpg
CHANGED
|
|