new gradio example with image

#2
by akhaliq HF Staff - opened
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1448,6 +1448,9 @@ def build_ui():
1448
  [
1449
  "Write a Go program that generates and prints a multiplication table from 1 to 12. Format the output in a neat grid with proper alignment."
1450
  ],
 
 
 
1451
  ],
1452
  example_labels=[
1453
  "๐Ÿฎ ๆ˜ฅ่Š‚ไธป้ข˜ๅ›พๆกˆ",
@@ -1478,6 +1481,7 @@ def build_ui():
1478
  "๐Ÿ˜„ Happy Numbers in Rust",
1479
  "๐Ÿ”Ž Binary Search in Java",
1480
  "โœ–๏ธ Multiplication Table in Go",
 
1481
  ],
1482
  examples_per_page=100,
1483
  label="Example Prompts",
 
1448
  [
1449
  "Write a Go program that generates and prints a multiplication table from 1 to 12. Format the output in a neat grid with proper alignment."
1450
  ],
1451
+ [
1452
+ "Write a Python script with Gradio that applies a halftone effect to uploaded images. The app should allow users to upload an image file and convert it to a simple halftone pattern using basic image processing. Include a slider to control the dot size and display both the original and processed images. Use only built-in Python libraries and basic image manipulation techniques."
1453
+ ],
1454
  ],
1455
  example_labels=[
1456
  "๐Ÿฎ ๆ˜ฅ่Š‚ไธป้ข˜ๅ›พๆกˆ",
 
1481
  "๐Ÿ˜„ Happy Numbers in Rust",
1482
  "๐Ÿ”Ž Binary Search in Java",
1483
  "โœ–๏ธ Multiplication Table in Go",
1484
+ "๐Ÿ–จ๏ธ Halftone Image Effect with Gradio",
1485
  ],
1486
  examples_per_page=100,
1487
  label="Example Prompts",