Zenkad commited on
Commit
665a634
·
verified ·
1 Parent(s): 5c90959

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -1,8 +1,9 @@
1
  import os, requests, gradio as gr
2
 
3
- # 🔗 Ana ve yedek modeller
4
- PRIMARY_URL = "https://api-inference.huggingface.co/models/mistralai/Mixtral-8x7B-Instruct-v0.1"
5
- FALLBACK_URL = "https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3-8B-Instruct"
 
6
  HF_TOKEN = os.getenv("HF_TOKEN")
7
  HEADERS = {"Authorization": f"Bearer {HF_TOKEN}"}
8
 
@@ -39,10 +40,10 @@ theme = gr.themes.Soft(primary_hue="blue", neutral_hue="slate").set(
39
  block_title_text_color="#38bdf8"
40
  )
41
 
42
- with gr.Blocks(theme=theme, title="ZenkaMind v12") as demo:
43
  gr.Markdown(
44
- "<h1 style='text-align:center;color:#38bdf8'>🧠 ZenkaMind v12</h1>"
45
- "<p style='text-align:center;color:#94a3b8'>Türkçe yapay zekâ sohbet asistanı — Mixtral + Llama 3</p>"
46
  )
47
 
48
  chat_ui = gr.Chatbot(height=460, label="ZenkaMind")
 
1
  import os, requests, gradio as gr
2
 
3
+ # 🔗 Her zaman açık modeller
4
+ PRIMARY_URL = "https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta"
5
+ FALLBACK_URL = "https://api-inference.huggingface.co/models/microsoft/Phi-3-mini-4k-instruct"
6
+
7
  HF_TOKEN = os.getenv("HF_TOKEN")
8
  HEADERS = {"Authorization": f"Bearer {HF_TOKEN}"}
9
 
 
40
  block_title_text_color="#38bdf8"
41
  )
42
 
43
+ with gr.Blocks(theme=theme, title="ZenkaMind v13") as demo:
44
  gr.Markdown(
45
+ "<h1 style='text-align:center;color:#38bdf8'>🧠 ZenkaMind v13</h1>"
46
+ "<p style='text-align:center;color:#94a3b8'>Türkçe yapay zekâ sohbet asistanı — Zephyr + Phi-3 Mini</p>"
47
  )
48
 
49
  chat_ui = gr.Chatbot(height=460, label="ZenkaMind")