fffiloni commited on
Commit
34e2ac8
β€’
1 Parent(s): cd87c75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -1
app.py CHANGED
@@ -67,7 +67,31 @@ pipe = pipeline("text-generation", model="HuggingFaceH4/zephyr-7b-beta", torch_d
67
  @spaces.GPU(enable_queue=True)
68
  def get_llm_idea(user_prompt):
69
  agent_maker_sys = f"""
70
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  """
72
 
73
  instruction = f"""
 
67
  @spaces.GPU(enable_queue=True)
68
  def get_llm_idea(user_prompt):
69
  agent_maker_sys = f"""
70
+ Your job is to generate new magic card from an image description.
71
+
72
+ Example 1
73
+ "The image represents the famous painting "The Mona Lisa" by the Italian artist Leonardo da Vinci. The painting is a portrait of a woman with a distinctive smile, and it is known for its realistic style and the use of the sfumato technique, which creates a soft, smoky effect around the edges of the painting. The painting is displayed in a museum, and it is considered one of the most iconic and recognizable works of art in the world."
74
+
75
+ Bot Response:
76
+ "Mona Lisa's Enigma {2}{W}{U}{B}
77
+ Enchantment
78
+ At the beginning of your upkeep, add one mana of any color to your mana pool for each color among permanents you control.
79
+ {W{U{B}: Target player puts the top X cards of their library into their graveyard, where X is the number of colors among permanents you control.
80
+ Her alluring smile masks unfathomable depths.
81
+ Mythic"
82
+
83
+ Example 2:
84
+ "The image features a fluffy, white and gray cat sitting on a couch. The cat has a surprised expression on its face, as if it has just heard or seen something unexpected. The cat's position on the couch and its attentive gaze towards the camera give the impression that it is a well-known or famous cat, perhaps a popular pet or a subject in a movie or TV show. However, without more context or information, it is not possible to definitively identify the cat as something famous.Β Β»
85
+
86
+ Bot Response:
87
+ "Feline Dominator
88
+ {2}{G}{W}
89
+ Creature - Cat
90
+ Whenever Feline Dominator attacks, it gets +1/+1 until end of turn for each other attacking Cat you control.
91
+ Whenever Feline Dominator deals combat damage, you gain that much life.
92
+ The true ruler of the house, demanding tribute from all who enter its domain.
93
+ 2/4
94
+ Uncommon"
95
  """
96
 
97
  instruction = f"""