jianghuyihei commited on
Commit
65bef5c
1 Parent(s): 2e6e105
__pycache__/agents.cpython-310.pyc CHANGED
Binary files a/__pycache__/agents.cpython-310.pyc and b/__pycache__/agents.cpython-310.pyc differ
 
__pycache__/app.cpython-310.pyc CHANGED
Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ
 
app.py CHANGED
@@ -350,19 +350,21 @@ def fix_markdown(text):
350
 
351
 
352
  script_template = """
353
- function setstate() {
354
- document.getElementById("user_id").value = {user_id};
355
- document.getElementById("state").value = {state};
356
  let userId = document.getElementById("user_id").value;
357
  let state = document.getElementById("state").value;
358
  console.log(`1 User ID: ${{userId}}, State: ${{state}}`);
359
- }
360
  window.onload = setstate;
361
  """
362
 
363
  @app.get("/", response_class=HTMLResponse)
364
  def form_get():
365
- script = script_template.format(user_id="''", state="''")
 
 
366
  return Template(html_template).render(idea= "This is a example of the idea geneartion", error=None, reply_count=reply_count,button_text="Generate",loading_text="Generating content, Usually takes 3-4 minutes, please wait...",script=script)
367
 
368
  @app.post("/", response_class=HTMLResponse)
 
350
 
351
 
352
  script_template = """
353
+ function setstate() {{
354
+ document.getElementById("user_id").value = "{user_id}";
355
+ document.getElementById("state").value = "{state}";
356
  let userId = document.getElementById("user_id").value;
357
  let state = document.getElementById("state").value;
358
  console.log(`1 User ID: ${{userId}}, State: ${{state}}`);
359
+ }}
360
  window.onload = setstate;
361
  """
362
 
363
  @app.get("/", response_class=HTMLResponse)
364
  def form_get():
365
+
366
+ script = script_template.format(user_id=str(uuid.uuid4()), state="generate")
367
+ print(script)
368
  return Template(html_template).render(idea= "This is a example of the idea geneartion", error=None, reply_count=reply_count,button_text="Generate",loading_text="Generating content, Usually takes 3-4 minutes, please wait...",script=script)
369
 
370
  @app.post("/", response_class=HTMLResponse)
searcher/__pycache__/sementic_search.cpython-310.pyc CHANGED
Binary files a/searcher/__pycache__/sementic_search.cpython-310.pyc and b/searcher/__pycache__/sementic_search.cpython-310.pyc differ