Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -48,6 +48,7 @@ def chatyuan_bot(input, history):
|
|
48 |
#print(context)
|
49 |
|
50 |
input_text = context + "\n用户:" + input + "\n小元:"
|
|
|
51 |
output_text = answer(input_text)
|
52 |
print("open_model".center(20, "="))
|
53 |
print(f"{input_text}\n{output_text}")
|
@@ -102,6 +103,7 @@ def chatyuan_bot_api(api_key, input, history):
|
|
102 |
#print(context)
|
103 |
|
104 |
input_text = context + "\n用户:" + input + "\n小元:"
|
|
|
105 |
output_text = ChatYuan(api_key, input_text)
|
106 |
print("api".center(20, "="))
|
107 |
print(f"api_key:{api_key}\n{input_text}\n{output_text}")
|
|
|
48 |
#print(context)
|
49 |
|
50 |
input_text = context + "\n用户:" + input + "\n小元:"
|
51 |
+
input_text = input_text.strip()
|
52 |
output_text = answer(input_text)
|
53 |
print("open_model".center(20, "="))
|
54 |
print(f"{input_text}\n{output_text}")
|
|
|
103 |
#print(context)
|
104 |
|
105 |
input_text = context + "\n用户:" + input + "\n小元:"
|
106 |
+
input_text = input_text.strip()
|
107 |
output_text = ChatYuan(api_key, input_text)
|
108 |
print("api".center(20, "="))
|
109 |
print(f"api_key:{api_key}\n{input_text}\n{output_text}")
|