Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files
controllers/gra_02_openInterpreter/OpenInterpreter.py
CHANGED
@@ -120,9 +120,9 @@ def format_responses(chunk, full_response):
|
|
120 |
# This function will format the response from the interpreter
|
121 |
return full_response + chunk.get("content", "")
|
122 |
|
123 |
-
def chat_with_interpreter(message, history=None,
|
124 |
|
125 |
-
if
|
126 |
yield "full_response"
|
127 |
return "full_response", history
|
128 |
|
|
|
120 |
# This function will format the response from the interpreter
|
121 |
return full_response + chunk.get("content", "")
|
122 |
|
123 |
+
def chat_with_interpreter(message, history=None,passw=None, temperature=None, max_new_tokens=None):
|
124 |
|
125 |
+
if passw != "12345":
|
126 |
yield "full_response"
|
127 |
return "full_response", history
|
128 |
|