Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -101,12 +101,8 @@ def chat(message,
|
|
101 |
system_message,
|
102 |
max_tokens,
|
103 |
temperature,
|
104 |
-
top_p
|
105 |
-
|
106 |
-
pass
|
107 |
-
else:
|
108 |
-
s=search(term=search_key)
|
109 |
-
messages=[{"role":"system","content":system_message+f"And, your name is chatchat made by an elementry school student who's huggingface id is peterpeter8585.The user who is useing you, gave you an information about the question he(she) is going to ask.INFO:{s}"}]
|
110 |
for val in history:
|
111 |
if val[0]:
|
112 |
messages.append({"role": "user", "content": val[0]})
|
@@ -132,8 +128,7 @@ ai1=gr.ChatInterface(
|
|
132 |
value=0.1,
|
133 |
step=0.05,
|
134 |
label="Top-p (nucleus sampling)",
|
135 |
-
)
|
136 |
-
gr.Textbox(label="Search Keyword")
|
137 |
],
|
138 |
)
|
139 |
with gr.Blocks(theme="prithivMLmods/Minecraft-Theme") as ai:
|
|
|
101 |
system_message,
|
102 |
max_tokens,
|
103 |
temperature,
|
104 |
+
top_p):
|
105 |
+
messages=[{"role":"system","content":system_message+"And, your name is chatchat made by an elementry school student who's huggingface id is peterpeter8585."}]
|
|
|
|
|
|
|
|
|
106 |
for val in history:
|
107 |
if val[0]:
|
108 |
messages.append({"role": "user", "content": val[0]})
|
|
|
128 |
value=0.1,
|
129 |
step=0.05,
|
130 |
label="Top-p (nucleus sampling)",
|
131 |
+
)
|
|
|
132 |
],
|
133 |
)
|
134 |
with gr.Blocks(theme="prithivMLmods/Minecraft-Theme") as ai:
|