openfree commited on
Commit
6964d3d
Β·
verified Β·
1 Parent(s): 45501e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -83,7 +83,7 @@ def do_web_search(query: str) -> str:
83
  # λͺ¨λΈ/ν”„λ‘œμ„Έμ„œ λ‘œλ”©
84
  ##############################################################################
85
  MAX_CONTENT_CHARS = 4000
86
- model_id = os.getenv("MODEL_ID", "mlabonne/gemma-3-27b-it-abliterated")
87
 
88
  processor = AutoProcessor.from_pretrained(model_id, padding_side="left")
89
  model = Gemma3ForConditionalGeneration.from_pretrained(
@@ -618,15 +618,15 @@ button:hover, .btn:hover {
618
  """
619
 
620
  title_html = """
621
- <h1 align="center" style="margin-bottom: 0.2em; font-size: 1.6em;"> πŸ€— Vidraft-G3-27B</h1>
622
  <p align="center" style="font-size:1.1em; color:#555;">
623
- 'Reasoning + Multimodal + VLM + DeepResearch + Agent' Platform<br>
624
- Operates on an NVIDIA A100 GPU as an independent local server, enhancing security and preventing information leakage.<br>
625
  @Based by 'MS Gemma-3-27b' / @Powered by 'MOUSE-II'(VIDRAFT)
626
  </p>
627
  """
628
 
629
- with gr.Blocks(css=css, title="Vidraft-G3-27B") as demo:
630
  gr.Markdown(title_html)
631
 
632
  # μ›Ήμ„œμΉ˜ μ˜΅μ…˜μ€ 화면에 ν‘œμ‹œ (ν•˜μ§€λ§Œ μ‹œμŠ€ν…œ ν”„λ‘¬ν”„νŠΈ, 토큰 μŠ¬λΌμ΄λ” 등은 감좀)
@@ -638,7 +638,7 @@ with gr.Blocks(css=css, title="Vidraft-G3-27B") as demo:
638
  # λ‚΄λΆ€μ μœΌλ‘œ μ“°μ΄μ§€λ§Œ ν™”λ©΄μ—λŠ” λ…ΈμΆœλ˜μ§€ μ•Šλ„λ‘ μ„€μ •
639
  system_prompt_box = gr.Textbox(
640
  lines=3,
641
- value="λ°˜λ“œμ‹œ ν•œκΈ€λ‘œ 좜λ ₯ν•˜μ—¬μ•Ό ν•œλ‹€. You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside tags, and then provide your solution or response to the problem. Please answer in Korean.You have the ability to read English sources, but you **must always speak in Korean**.Even if the search results are in English, answer in Korean.",
642
  visible=False # ν™”λ©΄μ—μ„œ 감좀
643
  )
644
 
 
83
  # λͺ¨λΈ/ν”„λ‘œμ„Έμ„œ λ‘œλ”©
84
  ##############################################################################
85
  MAX_CONTENT_CHARS = 4000
86
+ model_id = os.getenv("MODEL_ID", "VIDraft/Gemma3-R1945-27B")
87
 
88
  processor = AutoProcessor.from_pretrained(model_id, padding_side="left")
89
  model = Gemma3ForConditionalGeneration.from_pretrained(
 
618
  """
619
 
620
  title_html = """
621
+ <h1 align="center" style="margin-bottom: 0.2em; font-size: 1.6em;"> πŸ€— Gemma3-R1945-27B </h1>
622
  <p align="center" style="font-size:1.1em; color:#555;">
623
+ βœ…Agentic AI Platform βœ…Reasoning & Uncensored βœ…Multimodal & VLM βœ…Deep-Research & RAG <br>
624
+ Operates on an βœ…'NVIDIA A100 GPU' as an independent local server, enhancing security and preventing information leakage.<br>
625
  @Based by 'MS Gemma-3-27b' / @Powered by 'MOUSE-II'(VIDRAFT)
626
  </p>
627
  """
628
 
629
+ with gr.Blocks(css=css, title="Gemma3-R1945-27B") as demo:
630
  gr.Markdown(title_html)
631
 
632
  # μ›Ήμ„œμΉ˜ μ˜΅μ…˜μ€ 화면에 ν‘œμ‹œ (ν•˜μ§€λ§Œ μ‹œμŠ€ν…œ ν”„λ‘¬ν”„νŠΈ, 토큰 μŠ¬λΌμ΄λ” 등은 감좀)
 
638
  # λ‚΄λΆ€μ μœΌλ‘œ μ“°μ΄μ§€λ§Œ ν™”λ©΄μ—λŠ” λ…ΈμΆœλ˜μ§€ μ•Šλ„λ‘ μ„€μ •
639
  system_prompt_box = gr.Textbox(
640
  lines=3,
641
+ value="You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside tags, and then provide your solution or response to the problem. Please answer in Korean.You have the ability to read English sources, but you **must always speak in Korean**.Even if the search results are in English, answer in Korean.",
642
  visible=False # ν™”λ©΄μ—μ„œ 감좀
643
  )
644