Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -250,6 +250,7 @@ returns the names, SMILES strings, molecular weights and logP values for the sim
|
|
| 250 |
|
| 251 |
tool_choices = str(res).replace('smilars', 'similars').split('<|assistant|>')[1].split('#')[0].strip()
|
| 252 |
tool_choices = tool_choices.split(',')
|
|
|
|
| 253 |
if len(tool_choices) == 1:
|
| 254 |
if tool_choices[0].strip().lower() == 'none':
|
| 255 |
tool_choice = (None, None)
|
|
@@ -267,7 +268,7 @@ returns the names, SMILES strings, molecular weights and logP values for the sim
|
|
| 267 |
|
| 268 |
state["tool_choice"] = tool_choice
|
| 269 |
state["which_tool"] = 0
|
| 270 |
-
print(f"The chosen tools are: {tool_choice}")
|
| 271 |
|
| 272 |
return state
|
| 273 |
|
|
@@ -425,7 +426,7 @@ def get_chemtool(state):
|
|
| 425 |
'''
|
| 426 |
which_tool = state["which_tool"]
|
| 427 |
tool_choice = state["tool_choice"]
|
| 428 |
-
|
| 429 |
if tool_choice == None:
|
| 430 |
return None
|
| 431 |
if which_tool == 0 or which_tool == 1:
|
|
|
|
| 250 |
|
| 251 |
tool_choices = str(res).replace('smilars', 'similars').split('<|assistant|>')[1].split('#')[0].strip()
|
| 252 |
tool_choices = tool_choices.split(',')
|
| 253 |
+
print(tool_choices)
|
| 254 |
if len(tool_choices) == 1:
|
| 255 |
if tool_choices[0].strip().lower() == 'none':
|
| 256 |
tool_choice = (None, None)
|
|
|
|
| 268 |
|
| 269 |
state["tool_choice"] = tool_choice
|
| 270 |
state["which_tool"] = 0
|
| 271 |
+
print(f"First Node. The chosen tools are: {tool_choice}")
|
| 272 |
|
| 273 |
return state
|
| 274 |
|
|
|
|
| 426 |
'''
|
| 427 |
which_tool = state["which_tool"]
|
| 428 |
tool_choice = state["tool_choice"]
|
| 429 |
+
print('in get_chemtool ',tool_choice)
|
| 430 |
if tool_choice == None:
|
| 431 |
return None
|
| 432 |
if which_tool == 0 or which_tool == 1:
|