Spaces:
Runtime error
Runtime error
Commit
ยท
f64375c
1
Parent(s):
baf199d
Update app.py
Browse files
app.py
CHANGED
@@ -162,18 +162,18 @@ except Exception as e:
|
|
162 |
def gradio_generate_contents(user_content, brand_name):
|
163 |
return generate_contents(user_content, brand_name) # ๋ ์
๋ ฅ ๋ชจ๋ ์ ๋ฌ
|
164 |
|
|
|
165 |
# Gradio ์ธํฐํ์ด์ค ์์
|
166 |
iface = gr.Interface(
|
167 |
fn=gradio_generate_contents, # ์ปจํ
์ธ ์์ฑ ํจ์
|
168 |
-
inputs=[gr.
|
169 |
-
outputs=gr.
|
170 |
)
|
171 |
|
172 |
-
|
173 |
status_iface = gr.Interface(
|
174 |
fn=gradio_generate_status, # ์ปจํ
์ธ ์ํ ํ์ธ ํจ์
|
175 |
-
inputs=gr.
|
176 |
-
outputs=gr.
|
177 |
)
|
178 |
|
179 |
iface.launch()
|
|
|
162 |
def gradio_generate_contents(user_content, brand_name):
|
163 |
return generate_contents(user_content, brand_name) # ๋ ์
๋ ฅ ๋ชจ๋ ์ ๋ฌ
|
164 |
|
165 |
+
|
166 |
# Gradio ์ธํฐํ์ด์ค ์์
|
167 |
iface = gr.Interface(
|
168 |
fn=gradio_generate_contents, # ์ปจํ
์ธ ์์ฑ ํจ์
|
169 |
+
inputs=[gr.Textbox(label="์ปจํ
์ธ ํ
์คํธ"), gr.Textbox(label="๋ธ๋๋๋ช
")], # gr.inputs ๋์ gr ์ฌ์ฉ
|
170 |
+
outputs=gr.Textbox(label="์ปจํ
์ธ ID") # gr.outputs ๋์ gr ์ฌ์ฉ
|
171 |
)
|
172 |
|
|
|
173 |
status_iface = gr.Interface(
|
174 |
fn=gradio_generate_status, # ์ปจํ
์ธ ์ํ ํ์ธ ํจ์
|
175 |
+
inputs=gr.Textbox(label="์ปจํ
์ธ ID"), # gr.inputs ๋์ gr ์ฌ์ฉ
|
176 |
+
outputs=gr.Textbox(label="์ปจํ
์ธ ์ํ ๋๋ URL") # gr.outputs ๋์ gr ์ฌ์ฉ
|
177 |
)
|
178 |
|
179 |
iface.launch()
|