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",columns=4, height=
|
| 283 |
|
| 284 |
def on_select(evt: gr.SelectData):
|
| 285 |
return evt.value
|
|
@@ -302,7 +302,7 @@ with gr.Blocks() as demo:
|
|
| 302 |
"BUNNY",
|
| 303 |
"Y",
|
| 304 |
"KaushanScript-Regular",
|
| 305 |
-
|
| 306 |
],
|
| 307 |
# [
|
| 308 |
# "LION",
|
|
|
|
| 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=400, object_fit="contain")
|
| 283 |
|
| 284 |
def on_select(evt: gr.SelectData):
|
| 285 |
return evt.value
|
|
|
|
| 302 |
"BUNNY",
|
| 303 |
"Y",
|
| 304 |
"KaushanScript-Regular",
|
| 305 |
+
5#00
|
| 306 |
],
|
| 307 |
# [
|
| 308 |
# "LION",
|