Moonfanz commited on
Commit
375197c
·
verified ·
1 Parent(s): d814c58

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,4 +1,3 @@
1
-
2
  from flask import Flask, request, jsonify, Response, stream_with_context, render_template_string
3
  import google.generativeai as genai
4
  import json
@@ -99,14 +98,14 @@ function copyToClipboard(text) {
99
  function copyLink(event) {
100
  event.preventDefault();
101
  const url = new URL(window.location.href);
102
- const link = url.protocol + '//' + url.host + '/v1';
103
  copyToClipboard(link);
104
  alert('链接已复制: ' + link);
105
  }
106
  </script>
107
  </head>
108
  <body>
109
- {{ main_content }}<br/><br/>完全开源、免费且禁止商用<br/><br/>点击复制反向代理: <a href="hf/v1" onclick="copyLink(event)">Copy Link</a><br/>聊天来源选择"自定义(兼容 OpenAI)"<br/>填入到自定义端点<br/>将环境设置中的password填入自定义API秘钥<br/><br/><br/>
110
  </body>
111
  </html>
112
  """
 
 
1
  from flask import Flask, request, jsonify, Response, stream_with_context, render_template_string
2
  import google.generativeai as genai
3
  import json
 
98
  function copyLink(event) {
99
  event.preventDefault();
100
  const url = new URL(window.location.href);
101
+ const link = url.protocol + '//' + url.host + '/hf/v1';
102
  copyToClipboard(link);
103
  alert('链接已复制: ' + link);
104
  }
105
  </script>
106
  </head>
107
  <body>
108
+ {{ main_content }}<br/><br/>完全开源、免费且禁止商用<br/><br/>点击复制反向代理: <a href="v1" onclick="copyLink(event)">Copy Link</a><br/>聊天来源选择"自定义(兼容 OpenAI)"<br/>将复制的网址填入到自定义端点<br/>将环境设置中的password填入自定义API秘钥<br/><br/><br/>
109
  </body>
110
  </html>
111
  """