arxivgpt kim commited on
Commit
2c47d01
ยท
verified ยท
1 Parent(s): 0a0ea6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -14
app.py CHANGED
@@ -68,23 +68,20 @@ footer {
68
  visibility: hidden;
69
  }
70
  """
71
-
72
-
73
- # gr.Blocks๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ ˆ์ด์•„์›ƒ์„ ๊ตฌ์„ฑํ•ฉ๋‹ˆ๋‹ค.
74
- with gr.Blocks() as demo:
75
- with gr.Row():
76
- text_input = gr.Textbox(label="๋ฉ”์‹œ์ง€๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”...", placeholder="์—ฌ๊ธฐ์— ์ž…๋ ฅํ•˜์„ธ์š”...")
77
- with gr.Row():
78
- submit_button = gr.Button("์ „์†ก")
79
- output_html = gr.HTML(label="AI ์‘๋‹ต")
80
 
81
  submit_button.click(
82
  fn=predict,
83
  inputs=text_input,
84
- outputs=output_html
85
  )
86
 
87
-
88
- demo.launch(title="AIQ Codepilot", description="AI ์ž๋™ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์„œ๋น„์Šค")
89
-
90
-
 
68
  visibility: hidden;
69
  }
70
  """
71
+
72
+ with gr.Blocks(css=css) as demo:
73
+ gr.Markdown("AIQ Codepilot")
74
+ gr.Markdown("AI ์ž๋™ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์„œ๋น„์Šค")
75
+ gr.Markdown("Powred by Huggingface, Gradio, OpenAI, Python")
76
+ text_input = gr.Textbox(label="๋ฉ”์‹œ์ง€๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”...")
77
+ submit_button = gr.Button("์ „์†ก")
78
+ output_text = gr.Textbox(label="AI ์‘๋‹ต")
 
79
 
80
  submit_button.click(
81
  fn=predict,
82
  inputs=text_input,
83
+ outputs=output_text
84
  )
85
 
86
+ # ์ธํ„ฐํŽ˜์ด์Šค ์‹คํ–‰
87
+ demo.launch()