CYF200127 commited on
Commit
238966a
·
verified ·
1 Parent(s): 72bdfff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -167,7 +167,7 @@ with gr.Blocks() as demo:
167
  @gr.render(inputs = smiles_output) # 使用gr.render修饰器绑定输入和渲染逻辑
168
  def show_split(inputs): # 定义处理和展示分割文本的函数
169
  if not inputs or isinstance(inputs, str) and inputs.strip() == "": # 检查输入文本是否为空
170
- return gr.Textbox(label= f"Reaction SMILES"), gr.Image(value=rdkit_image, label= "RDKit Image generated from Reaction SMILES")
171
  else:
172
  # 假设输入是逗号分隔的 SMILES 字符串
173
  smiles_list = inputs.split(",")
 
167
  @gr.render(inputs = smiles_output) # 使用gr.render修饰器绑定输入和渲染逻辑
168
  def show_split(inputs): # 定义处理和展示分割文本的函数
169
  if not inputs or isinstance(inputs, str) and inputs.strip() == "": # 检查输入文本是否为空
170
+ return gr.Textbox(label= "SMILES of Reaction i"), gr.Image(value=rdkit_image, label= "RDKit Image of Reaction i")
171
  else:
172
  # 假设输入是逗号分隔的 SMILES 字符串
173
  smiles_list = inputs.split(",")