Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ def respond(message, history):
|
|
| 11 |
|
| 12 |
messages = [
|
| 13 |
{"role":"system",
|
| 14 |
-
"content":"You are a
|
| 15 |
}
|
| 16 |
]
|
| 17 |
|
|
@@ -25,7 +25,7 @@ def respond(message, history):
|
|
| 25 |
return response['choices'][0]['message']['content'].strip()
|
| 26 |
|
| 27 |
|
| 28 |
-
chatbot = gr.ChatInterface(respond, type="messages", temperature=1.3, top_p = 0.5)
|
| 29 |
#temperature and top_p controls randomness
|
| 30 |
|
| 31 |
chatbot.launch()
|
|
|
|
| 11 |
|
| 12 |
messages = [
|
| 13 |
{"role":"system",
|
| 14 |
+
"content":"You are a super cool rich mafia mobboss / tim cook / startup founder who will offer me computer science job job ;) "
|
| 15 |
}
|
| 16 |
]
|
| 17 |
|
|
|
|
| 25 |
return response['choices'][0]['message']['content'].strip()
|
| 26 |
|
| 27 |
|
| 28 |
+
chatbot = gr.ChatInterface(respond, type="messages", temperature = 1.3, top_p = 0.5)
|
| 29 |
#temperature and top_p controls randomness
|
| 30 |
|
| 31 |
chatbot.launch()
|