Spaces:
Running
Running
fix
Browse files- anycoder_app/ui.py +7 -2
anycoder_app/ui.py
CHANGED
|
@@ -13,15 +13,20 @@ from .config import (
|
|
| 13 |
)
|
| 14 |
from .themes import THEME_CONFIGS, get_saved_theme, current_theme
|
| 15 |
from .prompts import HTML_SYSTEM_PROMPT
|
|
|
|
| 16 |
from .parsers import (
|
| 17 |
history_render, clear_history, create_multimodal_message,
|
| 18 |
parse_multipage_html_output, parse_transformers_js_output,
|
| 19 |
parse_react_output, format_transformers_js_output,
|
| 20 |
-
validate_and_autofix_files, parse_multi_file_python_output
|
|
|
|
| 21 |
)
|
| 22 |
from .deploy import (
|
| 23 |
check_authentication, update_ui_for_auth_status,
|
| 24 |
-
generation_code, deploy_to_spaces, add_anycoder_tag_to_readme
|
|
|
|
|
|
|
|
|
|
| 25 |
)
|
| 26 |
|
| 27 |
# Main application with proper Gradio theming
|
|
|
|
| 13 |
)
|
| 14 |
from .themes import THEME_CONFIGS, get_saved_theme, current_theme
|
| 15 |
from .prompts import HTML_SYSTEM_PROMPT
|
| 16 |
+
from .models import history_to_chatbot_messages
|
| 17 |
from .parsers import (
|
| 18 |
history_render, clear_history, create_multimodal_message,
|
| 19 |
parse_multipage_html_output, parse_transformers_js_output,
|
| 20 |
parse_react_output, format_transformers_js_output,
|
| 21 |
+
validate_and_autofix_files, parse_multi_file_python_output,
|
| 22 |
+
is_streamlit_code, is_gradio_code
|
| 23 |
)
|
| 24 |
from .deploy import (
|
| 25 |
check_authentication, update_ui_for_auth_status,
|
| 26 |
+
generation_code, deploy_to_spaces, add_anycoder_tag_to_readme,
|
| 27 |
+
_parse_repo_or_model_url, load_project_from_url, check_hf_space_url,
|
| 28 |
+
import_repo_to_app, extract_import_statements,
|
| 29 |
+
generate_requirements_txt_with_llm, prettify_comfyui_json_for_html
|
| 30 |
)
|
| 31 |
|
| 32 |
# Main application with proper Gradio theming
|