aiqcamp commited on
Commit
0da9692
ยท
verified ยท
1 Parent(s): f1f3239

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +34 -3
app.py CHANGED
@@ -245,7 +245,7 @@ css = """
245
  flex: 1;
246
  padding: 20px;
247
  border-right: 2px solid #eee;
248
- max-width: 600px;
249
  }
250
 
251
  .examples-column {
@@ -278,6 +278,16 @@ css = """
278
  border-radius: 10px;
279
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
280
  margin-bottom: 20px;
 
 
 
 
 
 
 
 
 
 
281
  }
282
 
283
  .example-card {
@@ -293,8 +303,25 @@ css = """
293
  color: #2a2a2a;
294
  margin-bottom: 10px;
295
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
296
  """
297
 
 
298
  # Gradio ์ธํ„ฐํŽ˜์ด์Šค ์ˆ˜์ •
299
  with gr.Blocks(css=css) as demo:
300
  gr.Markdown(
@@ -306,16 +333,20 @@ with gr.Blocks(css=css) as demo:
306
  gr.HTML("""<a href="https://visitorbadge.io/status?path=https%3A%2F%2Faiqcamp-diagram.hf.space">
307
  <img src="https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Faiqcamp-diagram.hf.space&countColor=%23263759" />
308
  </a>""")
 
 
309
 
310
  with gr.Row(equal_height=True) as main_row:
311
  # ์™ผ์ชฝ ์ž…๋ ฅ ์ปฌ๋Ÿผ
312
- with gr.Column(elem_id="input-column", scale=1):
313
  with gr.Group(elem_classes="input-box"):
314
  prompt = gr.Text(
315
  label="Diagram Prompt",
316
  placeholder="Enter your diagram structure...",
317
- lines=5
 
318
  )
 
319
  run_button = gr.Button("Generate Diagram", variant="primary")
320
  result = gr.Image(label="Generated Diagram")
321
 
 
245
  flex: 1;
246
  padding: 20px;
247
  border-right: 2px solid #eee;
248
+ max-width: 800px; /* ์ฆ๊ฐ€๋œ ์ตœ๋Œ€ ๋„ˆ๋น„ */
249
  }
250
 
251
  .examples-column {
 
278
  border-radius: 10px;
279
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
280
  margin-bottom: 20px;
281
+ width: 100%; /* ์ „์ฒด ๋„ˆ๋น„ ์‚ฌ์šฉ */
282
+ }
283
+
284
+ /* ํ…์ŠคํŠธ ์ž…๋ ฅ ๋ฐ•์Šค ์Šคํƒ€์ผ */
285
+ .input-box textarea {
286
+ width: 100% !important; /* ๊ฐ•์ œ ๋„ˆ๋น„ 100% */
287
+ min-width: 600px !important; /* ์ตœ์†Œ ๋„ˆ๋น„ ์„ค์ • */
288
+ font-size: 14px !important;
289
+ line-height: 1.5 !important;
290
+ padding: 12px !important;
291
  }
292
 
293
  .example-card {
 
303
  color: #2a2a2a;
304
  margin-bottom: 10px;
305
  }
306
+
307
+ /* ๋ ˆ์ด์•„์›ƒ ์กฐ์ • */
308
+ .contain {
309
+ max-width: 1400px !important; /* ์ „์ฒด ์ปจํ…Œ์ด๋„ˆ ๋„ˆ๋น„ ์ฆ๊ฐ€ */
310
+ margin: 0 auto !important;
311
+ }
312
+
313
+ /* ์ž…๋ ฅ ์˜์—ญ ์กฐ์ • */
314
+ .input-area {
315
+ flex: 2 !important; /* ์ž…๋ ฅ ์˜์—ญ ๋น„์œจ ์ฆ๊ฐ€ */
316
+ }
317
+
318
+ /* ์˜ˆ์ œ ์˜์—ญ ์กฐ์ • */
319
+ .examples-area {
320
+ flex: 1 !important;
321
+ }
322
  """
323
 
324
+
325
  # Gradio ์ธํ„ฐํŽ˜์ด์Šค ์ˆ˜์ •
326
  with gr.Blocks(css=css) as demo:
327
  gr.Markdown(
 
333
  gr.HTML("""<a href="https://visitorbadge.io/status?path=https%3A%2F%2Faiqcamp-diagram.hf.space">
334
  <img src="https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Faiqcamp-diagram.hf.space&countColor=%23263759" />
335
  </a>""")
336
+
337
+
338
 
339
  with gr.Row(equal_height=True) as main_row:
340
  # ์™ผ์ชฝ ์ž…๋ ฅ ์ปฌ๋Ÿผ
341
+ with gr.Column(elem_id="input-column", scale=2): # scale ๊ฐ’ ์ฆ๊ฐ€
342
  with gr.Group(elem_classes="input-box"):
343
  prompt = gr.Text(
344
  label="Diagram Prompt",
345
  placeholder="Enter your diagram structure...",
346
+ lines=10, # ์ค„ ์ˆ˜ ์ฆ๊ฐ€
347
+ elem_classes="prompt-input" # CSS ํด๋ž˜์Šค ์ถ”๊ฐ€
348
  )
349
+
350
  run_button = gr.Button("Generate Diagram", variant="primary")
351
  result = gr.Image(label="Generated Diagram")
352