Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -279,7 +279,7 @@ with gr.Blocks() as demo:
|
|
279 |
font_name = gr.Text(value=None,visible=False,label="Font Name")
|
280 |
gallery = gr.Gallery(value=[(os.path.join("images","KaushanScript-Regular.png"),"KaushanScript-Regular"), (os.path.join("images","IndieFlower-Regular.png"),"IndieFlower-Regular"),(os.path.join("images","Quicksand.png"),"Quicksand"),
|
281 |
(os.path.join("images","Saira-Regular.png"),"Saira-Regular"), (os.path.join("images","LuckiestGuy-Regular.png"),"LuckiestGuy-Regular"),(os.path.join("images","DeliusUnicase-Regular.png"),"DeliusUnicase-Regular"),
|
282 |
-
(os.path.join("images","Noteworthy-Bold.png"),"Noteworthy-Bold"), (os.path.join("images","HobeauxRococeaux-Sherman.png"),"HobeauxRococeaux-Sherman")],label="Font Name")
|
283 |
|
284 |
def on_select(evt: gr.SelectData):
|
285 |
return evt.value
|
@@ -289,9 +289,9 @@ with gr.Blocks() as demo:
|
|
289 |
run = gr.Button('Generate')
|
290 |
|
291 |
with gr.Column():
|
292 |
-
result0 = gr.Image(type="filepath", label="Initial Word"
|
293 |
-
result1 = gr.Image(type="filepath", label="Optimization Process"
|
294 |
-
result2 = gr.Image(type="filepath", label="Final Result",visible=False
|
295 |
|
296 |
|
297 |
with gr.Row():
|
@@ -304,27 +304,27 @@ with gr.Blocks() as demo:
|
|
304 |
"KaushanScript-Regular",
|
305 |
500
|
306 |
],
|
307 |
-
[
|
308 |
-
"LION",
|
309 |
-
"LION",
|
310 |
-
"O",
|
311 |
-
"Quicksand",
|
312 |
-
500
|
313 |
-
],
|
314 |
-
[
|
315 |
-
"FROG",
|
316 |
-
"FROG",
|
317 |
-
"G",
|
318 |
-
"IndieFlower-Regular",
|
319 |
-
500
|
320 |
-
],
|
321 |
-
[
|
322 |
-
"CAT",
|
323 |
-
"CAT",
|
324 |
-
"C",
|
325 |
-
"LuckiestGuy-Regular",
|
326 |
-
500
|
327 |
-
],
|
328 |
]
|
329 |
gr.Examples(examples=examples,
|
330 |
inputs=[
|
|
|
279 |
font_name = gr.Text(value=None,visible=False,label="Font Name")
|
280 |
gallery = gr.Gallery(value=[(os.path.join("images","KaushanScript-Regular.png"),"KaushanScript-Regular"), (os.path.join("images","IndieFlower-Regular.png"),"IndieFlower-Regular"),(os.path.join("images","Quicksand.png"),"Quicksand"),
|
281 |
(os.path.join("images","Saira-Regular.png"),"Saira-Regular"), (os.path.join("images","LuckiestGuy-Regular.png"),"LuckiestGuy-Regular"),(os.path.join("images","DeliusUnicase-Regular.png"),"DeliusUnicase-Regular"),
|
282 |
+
(os.path.join("images","Noteworthy-Bold.png"),"Noteworthy-Bold"), (os.path.join("images","HobeauxRococeaux-Sherman.png"),"HobeauxRococeaux-Sherman")],label="Font Name",columns=4, height=200, object_fit="contain")
|
283 |
|
284 |
def on_select(evt: gr.SelectData):
|
285 |
return evt.value
|
|
|
289 |
run = gr.Button('Generate')
|
290 |
|
291 |
with gr.Column():
|
292 |
+
result0 = gr.Image(type="filepath", label="Initial Word",height=333)
|
293 |
+
result1 = gr.Image(type="filepath", label="Optimization Process",height=100)
|
294 |
+
result2 = gr.Image(type="filepath", label="Final Result",visible=False,height=333)
|
295 |
|
296 |
|
297 |
with gr.Row():
|
|
|
304 |
"KaushanScript-Regular",
|
305 |
500
|
306 |
],
|
307 |
+
# [
|
308 |
+
# "LION",
|
309 |
+
# "LION",
|
310 |
+
# "O",
|
311 |
+
# "Quicksand",
|
312 |
+
# 500
|
313 |
+
# ],
|
314 |
+
# [
|
315 |
+
# "FROG",
|
316 |
+
# "FROG",
|
317 |
+
# "G",
|
318 |
+
# "IndieFlower-Regular",
|
319 |
+
# 500
|
320 |
+
# ],
|
321 |
+
# [
|
322 |
+
# "CAT",
|
323 |
+
# "CAT",
|
324 |
+
# "C",
|
325 |
+
# "LuckiestGuy-Regular",
|
326 |
+
# 500
|
327 |
+
# ],
|
328 |
]
|
329 |
gr.Examples(examples=examples,
|
330 |
inputs=[
|