acecalisto3 commited on
Commit
fae4179
1 Parent(s): 5ac92d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +38 -1
app.py CHANGED
@@ -1,4 +1,41 @@
1
- import os import subprocess import random from huggingface_hub import InferenceClient, cached_download, hf_hub_url import gradio as gr from safe_search import safe_search from i_search import google from i_search import i_search as i_s from agent import ( ACTION_PROMPT, ADD_PROMPT, COMPRESS_HISTORY_PROMPT, LOG_PROMPT, LOG_RESPONSE, MODIFY_PROMPT, PREFIX, SEARCH_QUERY, READ_PROMPT, TASK_PROMPT, UNDERSTAND_TEST_RESULTS_PROMPT, ) from utils import parse_action, parse_file_content, read_python_module_structure from datetime import datetime import json
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  --- Global Variables for App State ---
4
  app_state = {"components": []} terminal_history = ""
 
1
+ import os
2
+ import subprocess
3
+ import random
4
+ import json
5
+ from datetime import datetime
6
+
7
+ from huggingface_hub import (
8
+ InferenceClient,
9
+ cached_download,
10
+ hf_hub_url
11
+ )
12
+ import gradio as gr
13
+
14
+ from safe_search import safe_search
15
+ from i_search import google
16
+ from i_search import i_search as i_s
17
+
18
+ from agent import (
19
+ ACTION_PROMPT,
20
+ ADD_PROMPT,
21
+ COMPRESS_HISTORY_PROMPT,
22
+ LOG_PROMPT,
23
+ LOG_RESPONSE,
24
+ MODIFY_PROMPT,
25
+ PREFIX,
26
+ SEARCH_QUERY,
27
+ READ_PROMPT,
28
+ TASK_PROMPT,
29
+ UNDERSTAND_TEST_RESULTS_PROMPT,
30
+ )
31
+
32
+ from utils import (
33
+ parse_action,
34
+ parse_file_content,
35
+ read_python_module_structure
36
+ )
37
+ from datetime import datetime
38
+ import json
39
 
40
  --- Global Variables for App State ---
41
  app_state = {"components": []} terminal_history = ""