Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import subprocess
|
|
3 |
import random
|
4 |
from huggingface_hub import InferenceClient
|
5 |
import gradio as gr
|
|
|
6 |
from i_search import google
|
7 |
from i_search import i_search as i_s
|
8 |
from agent import (
|
@@ -68,6 +69,7 @@ def run_gpt(
|
|
68 |
content = PREFIX.format(
|
69 |
date_time_str=date_time_str,
|
70 |
purpose=purpose,
|
|
|
71 |
) + prompt_template.format(**prompt_kwargs)
|
72 |
if VERBOSE:
|
73 |
print(LOG_PROMPT.format(content))
|
|
|
3 |
import random
|
4 |
from huggingface_hub import InferenceClient
|
5 |
import gradio as gr
|
6 |
+
from safe_search import safe_search
|
7 |
from i_search import google
|
8 |
from i_search import i_search as i_s
|
9 |
from agent import (
|
|
|
69 |
content = PREFIX.format(
|
70 |
date_time_str=date_time_str,
|
71 |
purpose=purpose,
|
72 |
+
safe_search=safe_search,
|
73 |
) + prompt_template.format(**prompt_kwargs)
|
74 |
if VERBOSE:
|
75 |
print(LOG_PROMPT.format(content))
|