Spaces:
ginigen
/
Runtime error

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