Spaces:
Running
on
Zero
Running
on
Zero
test
Browse files- app.py +1 -1
- mysite/asgi.py +3 -3
- workspace/test.csv +4 -0
- 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=
|
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.
|
87 |
-
interpreter.
|
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(
|
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.
|