Spaces:
Running
Running
broadfield
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ def generate(prompt,history,mod=2,tok=4000,seed=1,role="ASSISTANT",data=None):
|
|
96 |
#prompt=f"We just completed role:{role}, now choose the next tool to complete the task:{prompt}, or COMPLETE"
|
97 |
for response in stream:
|
98 |
output += response.token.text
|
99 |
-
|
100 |
yield output
|
101 |
yield history
|
102 |
yield prompt
|
@@ -151,7 +151,7 @@ def build_space(repo_name,file_name,file_content,access_token=""):
|
|
151 |
|
152 |
|
153 |
def agent(prompt_in,history,mod=2):
|
154 |
-
|
155 |
print('mod ',mod)
|
156 |
in_data=[None,None,None,None,None,]
|
157 |
#in_data[0]=prompt_in['text']
|
|
|
96 |
#prompt=f"We just completed role:{role}, now choose the next tool to complete the task:{prompt}, or COMPLETE"
|
97 |
for response in stream:
|
98 |
output += response.token.text
|
99 |
+
print(output)
|
100 |
yield output
|
101 |
yield history
|
102 |
yield prompt
|
|
|
151 |
|
152 |
|
153 |
def agent(prompt_in,history,mod=2):
|
154 |
+
print(prompt_in)
|
155 |
print('mod ',mod)
|
156 |
in_data=[None,None,None,None,None,]
|
157 |
#in_data[0]=prompt_in['text']
|