kenken999 commited on
Commit
b52b640
1 Parent(s): a1e2064
Files changed (4) hide show
  1. app.py +1 -1
  2. mysite/asgi.py +3 -3
  3. workspace/test.csv +4 -0
  4. workspace/test.txt +1 -0
app.py CHANGED
@@ -30,5 +30,5 @@ import os
30
  from llamafactory.webui.interface import create_ui
31
 
32
  if __name__ == "__main__":
33
- uvicorn.run("mysite.asgi:app", host="0.0.0.0", port=7860)
34
  #uvicorn.run("mysite.asgi:app", host="0.0.0.0", port=7860, reload=True)
 
30
  from llamafactory.webui.interface import create_ui
31
 
32
  if __name__ == "__main__":
33
+ uvicorn.run("mysite.asgi:app", host="0.0.0.0", port=7861)
34
  #uvicorn.run("mysite.asgi:app", host="0.0.0.0", port=7860, reload=True)
mysite/asgi.py CHANGED
@@ -83,8 +83,8 @@ interpreter.llm.max_output = 10000 # 出力の最大トークン数
83
  interpreter.max_output = 10000 # 出力の最大トークン数
84
 
85
 
86
- interpreter.llm.conversation_history = True
87
- interpreter.llm.debug_mode = True
88
  #interpreter.temperature = 0.7
89
 
90
  DESCRIPTION = '''
@@ -321,7 +321,7 @@ messages = []
321
  def add_conversation(conversations, num_messages=4):
322
  # historyの内容をログ出力
323
  logger.info("--------------------------------------------------------------------------------")
324
- logger.info("History: %s", str(history))
325
 
326
  recent_messages = conversations[-num_messages:]
327
  for conversation in recent_messages:
 
83
  interpreter.max_output = 10000 # 出力の最大トークン数
84
 
85
 
86
+ interpreter.conversation_history = True
87
+ interpreter.debug_mode = True
88
  #interpreter.temperature = 0.7
89
 
90
  DESCRIPTION = '''
 
321
  def add_conversation(conversations, num_messages=4):
322
  # historyの内容をログ出力
323
  logger.info("--------------------------------------------------------------------------------")
324
+ logger.info("History: %s", str(conversations))
325
 
326
  recent_messages = conversations[-num_messages:]
327
  for conversation in recent_messages:
workspace/test.csv ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ Name,Age
2
+ John,25
3
+ Alice,30
4
+ Bob,35
workspace/test.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ This is a test file.