Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,9 @@
|
|
| 1 |
import os, requests, gradio as gr
|
| 2 |
|
| 3 |
-
# 🔗
|
| 4 |
-
PRIMARY_URL = "https://api-inference.huggingface.co/models/
|
| 5 |
-
FALLBACK_URL = "https://api-inference.huggingface.co/models/
|
|
|
|
| 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
|
| 43 |
gr.Markdown(
|
| 44 |
-
"<h1 style='text-align:center;color:#38bdf8'>🧠 ZenkaMind
|
| 45 |
-
"<p style='text-align:center;color:#94a3b8'>Türkçe yapay zekâ sohbet asistanı —
|
| 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")
|