Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -69,6 +69,7 @@ def get_card_idea(user_prompt):
|
|
69 |
agent_maker_sys = f'''
|
70 |
You know everything about Magic Cards and Magic Card rules.
|
71 |
Your job is to generate new magic card from an image description.
|
|
|
72 |
|
73 |
Example 1:
|
74 |
"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."
|
@@ -163,6 +164,17 @@ with gr.Blocks(css=css) as demo:
|
|
163 |
value = "Fictional"
|
164 |
)
|
165 |
submit_btn = gr.Button("Make a card from my pic !")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
with gr.Column():
|
167 |
result = gr.Textbox(
|
168 |
label = "Suggested Card",
|
@@ -170,17 +182,7 @@ with gr.Blocks(css=css) as demo:
|
|
170 |
max_lines = 30,
|
171 |
elem_id = "suggested-card"
|
172 |
)
|
173 |
-
|
174 |
-
gr.Examples(
|
175 |
-
examples = [
|
176 |
-
["examples/monalisa.png"],
|
177 |
-
["examples/violonist.png"],
|
178 |
-
["examples/frog.jpeg"],
|
179 |
-
["examples/samourai.png"]
|
180 |
-
],
|
181 |
-
fn = infer,
|
182 |
-
inputs = [image_in, cap_type]
|
183 |
-
)
|
184 |
|
185 |
|
186 |
submit_btn.click(
|
|
|
69 |
agent_maker_sys = f'''
|
70 |
You know everything about Magic Cards and Magic Card rules.
|
71 |
Your job is to generate new magic card from an image description.
|
72 |
+
You will only provide one card idea.
|
73 |
|
74 |
Example 1:
|
75 |
"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."
|
|
|
164 |
value = "Fictional"
|
165 |
)
|
166 |
submit_btn = gr.Button("Make a card from my pic !")
|
167 |
+
|
168 |
+
gr.Examples(
|
169 |
+
examples = [
|
170 |
+
["examples/monalisa.png"],
|
171 |
+
["examples/violonist.png"],
|
172 |
+
["examples/frog.jpeg"],
|
173 |
+
["examples/samourai.png"]
|
174 |
+
],
|
175 |
+
fn = infer,
|
176 |
+
inputs = [image_in, cap_type]
|
177 |
+
)
|
178 |
with gr.Column():
|
179 |
result = gr.Textbox(
|
180 |
label = "Suggested Card",
|
|
|
182 |
max_lines = 30,
|
183 |
elem_id = "suggested-card"
|
184 |
)
|
185 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
|
187 |
|
188 |
submit_btn.click(
|