seawolf2357 commited on
Commit
c80f381
ยท
verified ยท
1 Parent(s): 8e86d61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -10
app.py CHANGED
@@ -20,7 +20,7 @@ iframe {
20
  }
21
  .gr-column {
22
  padding: 10px;
23
- width: 50%;
24
  }
25
  /* '์ฝ”๋“œ' ํฌํ•จ ๊ฒฐ๊ณผ์— ๋Œ€ํ•œ ์Šคํƒ€์ผ */
26
  .code-result {
@@ -55,19 +55,13 @@ def process_result(input_text):
55
 
56
  def app():
57
  with gr.Blocks(css=css_style) as demo:
58
- gr.Markdown("# AIQ Codepilot TEST", elem_id="main-title")
59
  with gr.Row():
60
- with gr.Column():
61
- gr.Markdown("### AIQ Codepilot", elem_id="title-1")
62
- gr.HTML(value='<iframe src="https://www.chatbase.co/chatbot-iframe/100-daum-net-eurma-q2o"></iframe>')
63
-
64
- with gr.Column():
65
- gr.Markdown("### ์›น์„œ๋น„์Šค ๋™์ž‘ ํ™”๋ฉด", elem_id="title-2")
66
- gr.HTML(value='<iframe src="https://seawolf2357-frametest1.hf.space"></iframe>')
67
 
68
  # ์ž…๋ ฅ ํ•„๋“œ์™€ ๊ฒฐ๊ณผ ์ถœ๋ ฅ ์„ค์ •
69
  input_text = gr.Textbox(label="์—ฌ๊ธฐ์— ์ฝ”๋“œ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”")
70
- result = gr.HTML() # `live=True` ๋งค๊ฐœ๋ณ€์ˆ˜ ์ œ๊ฑฐ
71
  input_text.change(fn=process_result, inputs=input_text, outputs=result)
72
 
73
  return demo
 
20
  }
21
  .gr-column {
22
  padding: 10px;
23
+ width: 100%; /* ์ „์ฒด ๋„ˆ๋น„ ์‚ฌ์šฉ */
24
  }
25
  /* '์ฝ”๋“œ' ํฌํ•จ ๊ฒฐ๊ณผ์— ๋Œ€ํ•œ ์Šคํƒ€์ผ */
26
  .code-result {
 
55
 
56
  def app():
57
  with gr.Blocks(css=css_style) as demo:
58
+ gr.Markdown("## AIQ์ฝ”๋“œํŒŒ์ผ๋Ÿฟ", elem_id="main-title")
59
  with gr.Row():
60
+ gr.HTML(value='<iframe src="https://www.chatbase.co/chatbot-iframe/100-daum-net-eurma-q2o"></iframe>')
 
 
 
 
 
 
61
 
62
  # ์ž…๋ ฅ ํ•„๋“œ์™€ ๊ฒฐ๊ณผ ์ถœ๋ ฅ ์„ค์ •
63
  input_text = gr.Textbox(label="์—ฌ๊ธฐ์— ์ฝ”๋“œ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”")
64
+ result = gr.HTML()
65
  input_text.change(fn=process_result, inputs=input_text, outputs=result)
66
 
67
  return demo