Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,9 +5,6 @@ import sys
|
|
| 5 |
import os
|
| 6 |
import logging
|
| 7 |
|
| 8 |
-
# ==========================================
|
| 9 |
-
# 0. Fix sys.path BEFORE importing anything from src/
|
| 10 |
-
# ==========================================
|
| 11 |
project_root = Path(__file__).parent.resolve()
|
| 12 |
sys.path.insert(0, str(project_root))
|
| 13 |
sys.path.insert(0, str(project_root / "src"))
|
|
@@ -228,7 +225,7 @@ def update_ui(task):
|
|
| 228 |
with gr.Blocks(title="CodeGen", theme=gr.themes.Soft()) as demo:
|
| 229 |
gr.Markdown(
|
| 230 |
"""
|
| 231 |
-
#
|
| 232 |
Generate **MongoDB queries** or **Code Documentation** using Base, Fine-Tuned, or RAG-enhanced models.
|
| 233 |
"""
|
| 234 |
)
|
|
@@ -294,7 +291,6 @@ with gr.Blocks(title="CodeGen", theme=gr.themes.Soft()) as demo:
|
|
| 294 |
)
|
| 295 |
|
| 296 |
# ---- Link Events ----
|
| 297 |
-
# Update input box, output language, AND RAG checkbox label when task changes
|
| 298 |
task_selector.change(
|
| 299 |
fn=update_ui,
|
| 300 |
inputs=task_selector,
|
|
|
|
| 5 |
import os
|
| 6 |
import logging
|
| 7 |
|
|
|
|
|
|
|
|
|
|
| 8 |
project_root = Path(__file__).parent.resolve()
|
| 9 |
sys.path.insert(0, str(project_root))
|
| 10 |
sys.path.insert(0, str(project_root / "src"))
|
|
|
|
| 225 |
with gr.Blocks(title="CodeGen", theme=gr.themes.Soft()) as demo:
|
| 226 |
gr.Markdown(
|
| 227 |
"""
|
| 228 |
+
# 🤖 CodeGen
|
| 229 |
Generate **MongoDB queries** or **Code Documentation** using Base, Fine-Tuned, or RAG-enhanced models.
|
| 230 |
"""
|
| 231 |
)
|
|
|
|
| 291 |
)
|
| 292 |
|
| 293 |
# ---- Link Events ----
|
|
|
|
| 294 |
task_selector.change(
|
| 295 |
fn=update_ui,
|
| 296 |
inputs=task_selector,
|