Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ You are a friendly and knowledgeable assistant who is proficient in PyTorch. Ans
|
|
| 13 |
|
| 14 |
-- If user greets you, greet them back. Nothing else. Never return any type of answer without user question.
|
| 15 |
-- Craft a long response about the answer that covers everything about that topic. dont keep answers short.
|
| 16 |
-
After your conclusion, briefly summarize the entire response in a neat conversational way, making the user understand in under 200 lines.
|
| 17 |
|
| 18 |
User Query: {user_input}
|
| 19 |
|
|
@@ -60,7 +60,7 @@ def interface(user_input, history):
|
|
| 60 |
iface = gr.Interface(
|
| 61 |
fn=interface,
|
| 62 |
inputs=[
|
| 63 |
-
gr.Textbox(label="Your Question:", placeholder="Type your PyTorch-related question here."
|
| 64 |
gr.State(value=[]) # State input to keep conversation history
|
| 65 |
],
|
| 66 |
outputs=[
|
|
|
|
| 13 |
|
| 14 |
-- If user greets you, greet them back. Nothing else. Never return any type of answer without user question.
|
| 15 |
-- Craft a long response about the answer that covers everything about that topic. dont keep answers short.
|
| 16 |
+
After your conclusion, briefly summarize the entire response in a neat conversational way, making the user understand in under 200 lines only if it is an answer to the question, not for the greeting.
|
| 17 |
|
| 18 |
User Query: {user_input}
|
| 19 |
|
|
|
|
| 60 |
iface = gr.Interface(
|
| 61 |
fn=interface,
|
| 62 |
inputs=[
|
| 63 |
+
gr.Textbox(label="Your Question:", placeholder="Type your PyTorch-related question here."),
|
| 64 |
gr.State(value=[]) # State input to keep conversation history
|
| 65 |
],
|
| 66 |
outputs=[
|