Spaces:
Runtime error
Runtime error
Commit
Β·
3e9646a
1
Parent(s):
f64375c
Update app.py
Browse files
app.py
CHANGED
@@ -157,23 +157,23 @@ try:
|
|
157 |
except Exception as e:
|
158 |
print(f"μ€λ₯ λ°μ: {e}")
|
159 |
|
160 |
-
|
161 |
-
# Gradio μΈν°νμ΄μ€λ₯Ό μν ν¨μ
|
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="λΈλλλͺ
")],
|
170 |
-
outputs=gr.Textbox(label="컨ν
μΈ ID")
|
171 |
)
|
172 |
|
173 |
status_iface = gr.Interface(
|
174 |
fn=gradio_generate_status, # 컨ν
μΈ μν νμΈ ν¨μ
|
175 |
-
inputs=gr.Textbox(label="컨ν
μΈ ID"),
|
176 |
-
outputs=gr.Textbox(label="컨ν
μΈ μν λλ URL")
|
177 |
)
|
178 |
|
179 |
iface.launch()
|
|
|
157 |
except Exception as e:
|
158 |
print(f"μ€λ₯ λ°μ: {e}")
|
159 |
|
|
|
|
|
160 |
def gradio_generate_contents(user_content, brand_name):
|
161 |
+
return generate_contents(user_content, brand_name)
|
162 |
|
163 |
+
def gradio_generate_status(content_id):
|
164 |
+
return generate_status(content_id)
|
165 |
|
166 |
# Gradio μΈν°νμ΄μ€ μμ
|
167 |
iface = gr.Interface(
|
168 |
fn=gradio_generate_contents, # 컨ν
μΈ μμ± ν¨μ
|
169 |
+
inputs=[gr.Textbox(label="컨ν
μΈ ν
μ€νΈ"), gr.Textbox(label="λΈλλλͺ
")],
|
170 |
+
outputs=gr.Textbox(label="컨ν
μΈ ID")
|
171 |
)
|
172 |
|
173 |
status_iface = gr.Interface(
|
174 |
fn=gradio_generate_status, # 컨ν
μΈ μν νμΈ ν¨μ
|
175 |
+
inputs=gr.Textbox(label="컨ν
μΈ ID"),
|
176 |
+
outputs=gr.Textbox(label="컨ν
μΈ μν λλ URL")
|
177 |
)
|
178 |
|
179 |
iface.launch()
|