Spaces:
Running
Running
broadfield
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -106,7 +106,7 @@ def generate(prompt,history,mod=2,tok=4000,seed=1,role="ASSISTANT",data=None):
|
|
106 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=True)
|
107 |
for response in stream:
|
108 |
output += response.token.text
|
109 |
-
|
110 |
reponame=""
|
111 |
filename=""
|
112 |
filecontent=""
|
@@ -196,7 +196,7 @@ def agent(prompt_in,history,mod=2):
|
|
196 |
fn="NONE"
|
197 |
if 'CREATE_FILE' in fn:
|
198 |
print('CREATE_FILE called')
|
199 |
-
out_w =generate(com,history,mod=mod,tok=
|
200 |
build_space(out_w[0],out_w[1],out_w[2])
|
201 |
elif 'IMAGE' in fn:
|
202 |
print('IMAGE called')
|
|
|
106 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=True)
|
107 |
for response in stream:
|
108 |
output += response.token.text
|
109 |
+
print(response)
|
110 |
reponame=""
|
111 |
filename=""
|
112 |
filecontent=""
|
|
|
196 |
fn="NONE"
|
197 |
if 'CREATE_FILE' in fn:
|
198 |
print('CREATE_FILE called')
|
199 |
+
out_w =generate(com,history,mod=mod,tok=10000,seed=seed,role="CREATE_FILE",data=in_data)
|
200 |
build_space(out_w[0],out_w[1],out_w[2])
|
201 |
elif 'IMAGE' in fn:
|
202 |
print('IMAGE called')
|