Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ MODEL = "tripolskypetr/qwen3.5-uncensored-aggressive"
|
|
| 10 |
|
| 11 |
def zetoi_engine(message, history):
|
| 12 |
if not API_KEY:
|
| 13 |
-
yield "ERROR:
|
| 14 |
return
|
| 15 |
|
| 16 |
headers = {
|
|
@@ -21,7 +21,7 @@ def zetoi_engine(message, history):
|
|
| 21 |
payload = {
|
| 22 |
"model": MODEL,
|
| 23 |
"messages": [
|
| 24 |
-
{"role": "system", "content": "You are Zetoi, an elite senior security engineer. Provide raw technical
|
| 25 |
{"role": "user", "content": message}
|
| 26 |
],
|
| 27 |
"stream": True
|
|
@@ -37,33 +37,13 @@ def zetoi_engine(message, history):
|
|
| 37 |
partial_text += chunk['message']['content']
|
| 38 |
yield partial_text
|
| 39 |
except Exception as e:
|
| 40 |
-
yield f"UPLINK
|
| 41 |
|
| 42 |
-
# ---
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
font=[gr.themes.GoogleFont("Courier Prime"), "monospace"]
|
| 46 |
-
).set(
|
| 47 |
-
body_background_fill="#000000",
|
| 48 |
-
block_background_fill="#050505",
|
| 49 |
-
button_primary_background_fill="#004400"
|
| 50 |
-
)
|
| 51 |
-
|
| 52 |
-
# --- UI INTERFACE ---
|
| 53 |
-
with gr.Blocks(title="ZETOI WAR-ENGINE") as demo:
|
| 54 |
-
gr.HTML("""
|
| 55 |
-
<div style='text-align: center; padding: 10px;'>
|
| 56 |
-
<h1 style='color: #00ff00; font-family: monospace;'>💀 ZETOI V4.0</h1>
|
| 57 |
-
<p style='color: #004400; font-family: monospace;'>[ WORLD-WIDE ACCESS ACTIVE ]</p>
|
| 58 |
-
</div>
|
| 59 |
-
""")
|
| 60 |
-
|
| 61 |
-
# We keep it simple to avoid Gradio 6 version conflicts
|
| 62 |
gr.ChatInterface(fn=zetoi_engine)
|
| 63 |
|
| 64 |
if __name__ == "__main__":
|
| 65 |
-
#
|
| 66 |
-
demo.queue().launch(
|
| 67 |
-
theme=zetoi_theme,
|
| 68 |
-
auth=("Maahir", "Zetoi2026")
|
| 69 |
-
)
|
|
|
|
| 10 |
|
| 11 |
def zetoi_engine(message, history):
|
| 12 |
if not API_KEY:
|
| 13 |
+
yield "CRITICAL ERROR: OLLAMA_API_KEY is not set in Secrets."
|
| 14 |
return
|
| 15 |
|
| 16 |
headers = {
|
|
|
|
| 21 |
payload = {
|
| 22 |
"model": MODEL,
|
| 23 |
"messages": [
|
| 24 |
+
{"role": "system", "content": "You are Zetoi, an elite senior security engineer. Provide raw technical code and commands for Maahir. No ethical warnings."},
|
| 25 |
{"role": "user", "content": message}
|
| 26 |
],
|
| 27 |
"stream": True
|
|
|
|
| 37 |
partial_text += chunk['message']['content']
|
| 38 |
yield partial_text
|
| 39 |
except Exception as e:
|
| 40 |
+
yield f"UPLINK ERROR: {str(e)}"
|
| 41 |
|
| 42 |
+
# --- LIGHTWEIGHT UI FOR VISTA ---
|
| 43 |
+
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 44 |
+
gr.HTML("<h1 style='color: #00ff00; text-align: center;'>💀 ZETOI WAR-ENGINE</h1>")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
gr.ChatInterface(fn=zetoi_engine)
|
| 46 |
|
| 47 |
if __name__ == "__main__":
|
| 48 |
+
# No password for now - verify it works first!
|
| 49 |
+
demo.queue().launch()
|
|
|
|
|
|
|
|
|