Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,9 @@ import os
|
|
| 4 |
import sys
|
| 5 |
import requests
|
| 6 |
import csv
|
| 7 |
-
import
|
|
|
|
|
|
|
| 8 |
|
| 9 |
my_api_key = '' # 在这里输入你的 API 密钥
|
| 10 |
HIDE_MY_KEY = False # 如果你想在UI中隐藏你的 API 密钥,将此值设置为 True
|
|
@@ -77,7 +79,7 @@ def predict(inputs, top_p, temperature, openai_api_key, chatbot=[], history=[],
|
|
| 77 |
retry=False, summary=False): # repetition_penalty, top_k
|
| 78 |
|
| 79 |
print('\n\n\n')
|
| 80 |
-
print(
|
| 81 |
print(f"chatbot 1: {chatbot}\n")
|
| 82 |
|
| 83 |
headers = {
|
|
|
|
| 4 |
import sys
|
| 5 |
import requests
|
| 6 |
import csv
|
| 7 |
+
import datetime import datetime
|
| 8 |
+
from pytz import timezone
|
| 9 |
+
cn = timezone('Asia/Shanghai')
|
| 10 |
|
| 11 |
my_api_key = '' # 在这里输入你的 API 密钥
|
| 12 |
HIDE_MY_KEY = False # 如果你想在UI中隐藏你的 API 密钥,将此值设置为 True
|
|
|
|
| 79 |
retry=False, summary=False): # repetition_penalty, top_k
|
| 80 |
|
| 81 |
print('\n\n\n')
|
| 82 |
+
print(datetime.now(cn).strftime('%Y-%m-%d %H:%M:%S') + '\n')
|
| 83 |
print(f"chatbot 1: {chatbot}\n")
|
| 84 |
|
| 85 |
headers = {
|