Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from typing import List, Dict
|
|
| 6 |
from huggingface_hub import InferenceClient
|
| 7 |
import streamlit as st
|
| 8 |
|
| 9 |
-
from .prompts import
|
| 10 |
ACTION_PROMPT,
|
| 11 |
ADD_PROMPT,
|
| 12 |
COMPRESS_HISTORY_PROMPT,
|
|
@@ -22,14 +22,14 @@ from .prompts import [
|
|
| 22 |
WEB_DEV,
|
| 23 |
PYTHON_CODE_DEV,
|
| 24 |
HUGGINGFACE_FILE_DEV
|
| 25 |
-
|
| 26 |
-
from app.utils import
|
| 27 |
parse_action,
|
| 28 |
parse_file_content,
|
| 29 |
read_python_module_structure,
|
| 30 |
extract_imports, # Unused import, consider removing or using
|
| 31 |
get_file, # Unused import, consider removing or using
|
| 32 |
-
|
| 33 |
|
| 34 |
# --- Constants ---
|
| 35 |
AGENT_TYPES = [
|
|
@@ -44,7 +44,7 @@ TOOL_TYPES = [
|
|
| 44 |
"API Caller",
|
| 45 |
"File Handler",
|
| 46 |
"Text Processor",
|
| 47 |
-
]
|
| 48 |
VERBOSE = False
|
| 49 |
MAX_HISTORY = 100
|
| 50 |
MODEL = "mistralai/Mixtral-8x7B-Instruct-v0.1" # Consider using a smaller model
|
|
|
|
| 6 |
from huggingface_hub import InferenceClient
|
| 7 |
import streamlit as st
|
| 8 |
|
| 9 |
+
from .prompts import (
|
| 10 |
ACTION_PROMPT,
|
| 11 |
ADD_PROMPT,
|
| 12 |
COMPRESS_HISTORY_PROMPT,
|
|
|
|
| 22 |
WEB_DEV,
|
| 23 |
PYTHON_CODE_DEV,
|
| 24 |
HUGGINGFACE_FILE_DEV
|
| 25 |
+
)
|
| 26 |
+
from app.utils import (
|
| 27 |
parse_action,
|
| 28 |
parse_file_content,
|
| 29 |
read_python_module_structure,
|
| 30 |
extract_imports, # Unused import, consider removing or using
|
| 31 |
get_file, # Unused import, consider removing or using
|
| 32 |
+
)
|
| 33 |
|
| 34 |
# --- Constants ---
|
| 35 |
AGENT_TYPES = [
|
|
|
|
| 44 |
"API Caller",
|
| 45 |
"File Handler",
|
| 46 |
"Text Processor",
|
| 47 |
+
]
|
| 48 |
VERBOSE = False
|
| 49 |
MAX_HISTORY = 100
|
| 50 |
MODEL = "mistralai/Mixtral-8x7B-Instruct-v0.1" # Consider using a smaller model
|