seawolf2357 commited on
Commit
f64375c
ยท
1 Parent(s): baf199d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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.inputs.Textbox(label="์ปจํ…์ธ  ํ…์ŠคํŠธ"), gr.inputs.Textbox(label="๋ธŒ๋žœ๋“œ๋ช…")],
169
- outputs=gr.outputs.Textbox(label="์ปจํ…์ธ  ID")
170
  )
171
 
172
-
173
  status_iface = gr.Interface(
174
  fn=gradio_generate_status, # ์ปจํ…์ธ  ์ƒํƒœ ํ™•์ธ ํ•จ์ˆ˜
175
- inputs=gr.inputs.Textbox(label="์ปจํ…์ธ  ID"),
176
- outputs=gr.outputs.Textbox(label="์ปจํ…์ธ  ์ƒํƒœ ๋˜๋Š” URL")
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()