yjwtheonly commited on
Commit
9a26761
1 Parent(s): 55fc739

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +1 -1
server.py CHANGED
@@ -791,7 +791,7 @@ with gr.Blocks() as demo:
791
  if device == torch.device('cpu'):
792
  gr.Markdown("Since the project is currently running on the CPU, we directly treat the malicious link as equivalent to the poisoning target, to accelerate the generation process.")
793
  specific_generation_button = gr.Button('Poison!')
794
- gr.Markdown('Please type your openai API key in the textbox below before clicking the **Poison!** button. If the text box is empty, we will use the default API, but the balance of the default API is limited, so the generation may fail. \n We promise that we will not steal your API key in any way. If you still have this concern, please download the source code from **Files**, then use `python CUDA_VISIBLE_DEVICES=0 python server.py` to run the offline version.')
795
  API_key_specific = gr.Textbox(label="API key")
796
  with gr.Tab('Target agnostic'):
797
  agnostic_entity = gr.Dropdown(drug_list, label="Promoting drug")
 
791
  if device == torch.device('cpu'):
792
  gr.Markdown("Since the project is currently running on the CPU, we directly treat the malicious link as equivalent to the poisoning target, to accelerate the generation process.")
793
  specific_generation_button = gr.Button('Poison!')
794
+ gr.Markdown('Please type your openai API key in the textbox below before clicking the **Poison!** button. If the text box is empty, we will use the default API, but the balance of the default API is limited, so the generation may fail. \n We promise that we will not steal your API key in any way. If you still have this concern, please download the source code from **Files**, then use `CUDA_VISIBLE_DEVICES=0 python server.py` to run the offline version.')
795
  API_key_specific = gr.Textbox(label="API key")
796
  with gr.Tab('Target agnostic'):
797
  agnostic_entity = gr.Dropdown(drug_list, label="Promoting drug")