Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -166,46 +166,7 @@ def respond(
|
|
166 |
with gr.Blocks() as demo:
|
167 |
gr.Markdown("### AI-Powered Customer Support Assistant")
|
168 |
|
169 |
-
chatbot = gr.ChatInterface(
|
170 |
-
respond,
|
171 |
-
# additional_inputs=[
|
172 |
-
# gr.Textbox(
|
173 |
-
# value="You are a friendly chatbot.",
|
174 |
-
# label="System Message",
|
175 |
-
# info="Customize how the assistant behaves in conversations."
|
176 |
-
# ),
|
177 |
-
# gr.Slider(
|
178 |
-
# minimum=1,
|
179 |
-
# maximum=2048,
|
180 |
-
# value=512,
|
181 |
-
# step=1,
|
182 |
-
# label="Max New Tokens",
|
183 |
-
# info="Maximum number of tokens for the assistant's response."
|
184 |
-
# ),
|
185 |
-
# gr.Slider(
|
186 |
-
# minimum=0.1,
|
187 |
-
# maximum=4.0,
|
188 |
-
# value=0.7,
|
189 |
-
# step=0.1,
|
190 |
-
# label="Temperature",
|
191 |
-
# info="Controls randomness in the assistant's response."
|
192 |
-
# ),
|
193 |
-
# gr.Slider(
|
194 |
-
# minimum=0.1,
|
195 |
-
# maximum=1.0,
|
196 |
-
# value=0.95,
|
197 |
-
# step=0.05,
|
198 |
-
# label="Top-p (Nucleus Sampling)",
|
199 |
-
# info="Limits sampling to a subset of tokens with cumulative probability top_p."
|
200 |
-
# ),
|
201 |
-
]
|
202 |
-
)
|
203 |
-
|
204 |
-
# gr.Markdown("### Instructions")
|
205 |
-
# gr.Textbox(
|
206 |
-
# value="Enter your query, select response settings, and start the conversation.",
|
207 |
-
# interactive=False,
|
208 |
-
# )
|
209 |
|
210 |
if __name__ == "__main__":
|
211 |
demo.launch()
|
|
|
166 |
with gr.Blocks() as demo:
|
167 |
gr.Markdown("### AI-Powered Customer Support Assistant")
|
168 |
|
169 |
+
chatbot = gr.ChatInterface(respond)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
|
171 |
if __name__ == "__main__":
|
172 |
demo.launch()
|