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