Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ from transformers import AutoTokenizer
|
|
| 24 |
# Configuration
|
| 25 |
# ============================================================
|
| 26 |
MODEL_NAME = os.getenv("MODEL_NAME", "OpenResearcher/Nemotron-3-Nano-30B-A3B")
|
| 27 |
-
REMOTE_API_BASE =
|
| 28 |
SERPER_API_KEY = os.getenv("SERPER_API_KEY", "")
|
| 29 |
MAX_NEW_TOKENS = int(os.getenv("MAX_NEW_TOKENS", "4096")) # Safe limit for ZeroGPU
|
| 30 |
|
|
@@ -2395,7 +2395,7 @@ def create_interface():
|
|
| 2395 |
''')
|
| 2396 |
serper_input = gr.Textbox(
|
| 2397 |
label="",
|
| 2398 |
-
value=
|
| 2399 |
type="password",
|
| 2400 |
placeholder="Enter your Serper API key...",
|
| 2401 |
show_label=False,
|
|
|
|
| 24 |
# Configuration
|
| 25 |
# ============================================================
|
| 26 |
MODEL_NAME = os.getenv("MODEL_NAME", "OpenResearcher/Nemotron-3-Nano-30B-A3B")
|
| 27 |
+
REMOTE_API_BASE = os.getenv("REMOTE_API_BASE", "")
|
| 28 |
SERPER_API_KEY = os.getenv("SERPER_API_KEY", "")
|
| 29 |
MAX_NEW_TOKENS = int(os.getenv("MAX_NEW_TOKENS", "4096")) # Safe limit for ZeroGPU
|
| 30 |
|
|
|
|
| 2395 |
''')
|
| 2396 |
serper_input = gr.Textbox(
|
| 2397 |
label="",
|
| 2398 |
+
value=SERPER_API_KEY,
|
| 2399 |
type="password",
|
| 2400 |
placeholder="Enter your Serper API key...",
|
| 2401 |
show_label=False,
|