openfree commited on
Commit
d94283c
·
verified ·
1 Parent(s): 36856a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -93
app.py CHANGED
@@ -490,94 +490,8 @@ def run(
490
  pass
491
  clear_cuda_cache()
492
 
493
- ##############################################################################
494
- # 예시들 (텍스트 및 문서 파일만)
495
- ##############################################################################
496
- examples = [
497
-
498
- [
499
- {
500
- "text": "Please compare and analyze the content of these two PDF files.",
501
- "files": [
502
- "assets/additional-examples/before.pdf",
503
- "assets/additional-examples/after.pdf",
504
- ],
505
- }
506
- ],
507
-
508
 
509
- ]
510
 
511
- ##############################################################################
512
- # Gradio UI
513
- ##############################################################################
514
- css = """
515
- .gradio-container {
516
- background: rgba(255, 255, 255, 0.7);
517
- padding: 40px 30px 20px 30px !important;
518
- margin: 0 auto !important;
519
- width: 100% !important;
520
- max-width: none !important;
521
- min-height: 100vh;
522
- box-sizing: border-box;
523
- }
524
- .fillable {
525
- width: 100% !important;
526
- max-width: 100% !important;
527
- }
528
- body {
529
- background: transparent;
530
- margin: 0;
531
- padding: 0;
532
- font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
533
- color: #333;
534
- }
535
- button, .btn {
536
- background: transparent !important;
537
- border: 1px solid #ddd;
538
- color: #333;
539
- padding: 12px 24px;
540
- text-transform: uppercase;
541
- font-weight: bold;
542
- letter-spacing: 1px;
543
- cursor: pointer;
544
- }
545
- button:hover, .btn:hover {
546
- background: rgba(0, 0, 0, 0.05) !important;
547
- }
548
- .app-title {
549
- margin: 0 0 30px 0 !important;
550
- padding: 20px 0 !important;
551
- text-align: center !important;
552
- background: rgba(240, 248, 255, 0.8);
553
- border-radius: 10px;
554
- border: 1px solid #e0e6ed;
555
- }
556
- .app-title h1 {
557
- margin: 0 0 15px 0 !important;
558
- padding: 0 !important;
559
- font-size: 2.2em !important;
560
- font-weight: bold !important;
561
- color: #1a365d !important;
562
- line-height: 1.2 !important;
563
- }
564
- .app-title .features {
565
- margin: 10px 0 !important;
566
- padding: 0 !important;
567
- font-size: 1.1em !important;
568
- font-weight: 600 !important;
569
- color: #2d3748 !important;
570
- line-height: 1.4 !important;
571
- }
572
- .app-title .tech-info {
573
- margin: 8px 0 0 0 !important;
574
- padding: 0 !important;
575
- font-size: 0.95em !important;
576
- color: #4a5568 !important;
577
- font-style: italic !important;
578
- line-height: 1.3 !important;
579
- }
580
- """
581
 
582
  title_html = """
583
  <h1 align="center" style="margin-bottom: 0.2em; font-size: 1.6em;"> 🤗 Gemma3-R1984-1B (Text-Only) </h1>
@@ -643,17 +557,10 @@ with gr.Blocks(css=css, title="Gemma3-R1984-1B") as demo:
643
  web_search_text,
644
  ],
645
  stop_btn=False,
646
- title='<a href="https://discord.gg/openfreeai" target="_blank">https://discord.gg/openfreeai</a>',
647
- examples=examples,
648
- run_examples_on_click=False,
649
- cache_examples=False,
650
  css_paths=None,
651
  delete_cache=(1800, 1800),
652
  )
653
 
654
- with gr.Row(elem_id="examples_row"):
655
- with gr.Column(scale=12, elem_id="examples_container"):
656
- gr.Markdown("### Example Inputs (Click to Load)")
657
 
658
  if __name__ == "__main__":
659
  demo.launch()
 
490
  pass
491
  clear_cuda_cache()
492
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
493
 
 
494
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
495
 
496
  title_html = """
497
  <h1 align="center" style="margin-bottom: 0.2em; font-size: 1.6em;"> 🤗 Gemma3-R1984-1B (Text-Only) </h1>
 
557
  web_search_text,
558
  ],
559
  stop_btn=False,
 
 
 
 
560
  css_paths=None,
561
  delete_cache=(1800, 1800),
562
  )
563
 
 
 
 
564
 
565
  if __name__ == "__main__":
566
  demo.launch()