Update app.py
Browse files
app.py
CHANGED
|
@@ -61,9 +61,10 @@ demo = gr.ChatInterface(
|
|
| 61 |
|
| 62 |
|
| 63 |
if __name__ == "__main__":
|
|
|
|
| 64 |
client.chat_completion(
|
| 65 |
-
|
| 66 |
-
|
| 67 |
parameters={"temperature": 0.7, "max_length": 100}
|
| 68 |
)
|
| 69 |
|
|
|
|
| 61 |
|
| 62 |
|
| 63 |
if __name__ == "__main__":
|
| 64 |
+
messages = [{"role": "user", "content": "Hello!"}]
|
| 65 |
client.chat_completion(
|
| 66 |
+
|
| 67 |
+
messages,
|
| 68 |
parameters={"temperature": 0.7, "max_length": 100}
|
| 69 |
)
|
| 70 |
|