Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ def gradio_generate_contents(user_content, brand_name, aspect_ratio):
|
|
70 |
def gradio_generate_status(content_id):
|
71 |
download_url = generate_status(content_id)
|
72 |
markdown_text = "์๋ ์์ฑ๋ ์์์ ๋ํ ์์ ๋ฐ ํธ์ง ์์ฒญ ํด๋ฆญ: [์ฌ๊ธฐ๋ฅผ ํด๋ฆญํ์ธ์](https://forms.gle/u9hPDFbntLEp8xH6A)"
|
73 |
-
|
74 |
if download_url != 'FAILED':
|
75 |
display_text = download_url[:10] + '...' if len(download_url) > 10 else download_url
|
76 |
html_link = f'<a href="{download_url}" target="_blank">{display_text}</a>'
|
@@ -86,10 +86,10 @@ iface_create = gr.Interface(
|
|
86 |
gr.TextArea(label="์ปจํ
์ธ ํ
์คํธ"),
|
87 |
gr.Textbox(label="๋ธ๋๋๋ช
"),
|
88 |
gr.Dropdown(label="ํ๋ฉด ๋น์จ", choices=['portrait', 'square', 'landscape'], value='landscape'),
|
89 |
-
gr.Markdown("๋น๋์ค ์คํฌ๋ฆฝํธ ์๋ ์์ฑ ํด๋ฆญ: [์ฌ๊ธฐ๋ฅผ ํด๋ฆญํ์ธ์](https://seawolf2357-hyejascript.hf.space)")
|
90 |
-
# ์ถ๊ฐ์ ์ธ ์ธ์๊ฐ ์๋์ง ํ์ธ
|
91 |
],
|
92 |
-
outputs=gr.Textbox(label="์ปจํ
์ธ ID"),
|
|
|
|
|
93 |
|
94 |
examples=[
|
95 |
[
|
|
|
70 |
def gradio_generate_status(content_id):
|
71 |
download_url = generate_status(content_id)
|
72 |
markdown_text = "์๋ ์์ฑ๋ ์์์ ๋ํ ์์ ๋ฐ ํธ์ง ์์ฒญ ํด๋ฆญ: [์ฌ๊ธฐ๋ฅผ ํด๋ฆญํ์ธ์](https://forms.gle/u9hPDFbntLEp8xH6A)"
|
73 |
+
|
74 |
if download_url != 'FAILED':
|
75 |
display_text = download_url[:10] + '...' if len(download_url) > 10 else download_url
|
76 |
html_link = f'<a href="{download_url}" target="_blank">{display_text}</a>'
|
|
|
86 |
gr.TextArea(label="์ปจํ
์ธ ํ
์คํธ"),
|
87 |
gr.Textbox(label="๋ธ๋๋๋ช
"),
|
88 |
gr.Dropdown(label="ํ๋ฉด ๋น์จ", choices=['portrait', 'square', 'landscape'], value='landscape'),
|
|
|
|
|
89 |
],
|
90 |
+
outputs=[gr.Textbox(label="์ปจํ
์ธ ID"),
|
91 |
+
gr.Markdown("๋น๋์ค ์คํฌ๋ฆฝํธ ์๋ ์์ฑ ํด๋ฆญ: [์ฌ๊ธฐ๋ฅผ ํด๋ฆญํ์ธ์](https://seawolf2357-hyejascript.hf.space)")
|
92 |
+
],
|
93 |
|
94 |
examples=[
|
95 |
[
|