Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def generate_response(user_input):
|
|
| 30 |
logging.debug(f'Messages to be sent to the model: {messages}')
|
| 31 |
|
| 32 |
response = openai.ChatCompletion.create(
|
| 33 |
-
model="meta/llama-
|
| 34 |
messages=messages,
|
| 35 |
temperature=0.2,
|
| 36 |
top_p=0.7,
|
|
@@ -61,8 +61,9 @@ if __name__ == "__main__":
|
|
| 61 |
gr.Markdown("## Chat with OpenAI")
|
| 62 |
chatbot = gr.Chatbot()
|
| 63 |
with gr.Row():
|
| 64 |
-
with gr.Column():
|
| 65 |
user_input = gr.Textbox(show_label=False, placeholder="Enter your message...")
|
|
|
|
| 66 |
submit_button = gr.Button("Send")
|
| 67 |
|
| 68 |
submit_button.click(chat_interface, [user_input, chatbot], [user_input, chatbot])
|
|
|
|
| 30 |
logging.debug(f'Messages to be sent to the model: {messages}')
|
| 31 |
|
| 32 |
response = openai.ChatCompletion.create(
|
| 33 |
+
model="meta-llama/llama-3b-v2",
|
| 34 |
messages=messages,
|
| 35 |
temperature=0.2,
|
| 36 |
top_p=0.7,
|
|
|
|
| 61 |
gr.Markdown("## Chat with OpenAI")
|
| 62 |
chatbot = gr.Chatbot()
|
| 63 |
with gr.Row():
|
| 64 |
+
with gr.Column(scale=12):
|
| 65 |
user_input = gr.Textbox(show_label=False, placeholder="Enter your message...")
|
| 66 |
+
with gr.Column(scale=1):
|
| 67 |
submit_button = gr.Button("Send")
|
| 68 |
|
| 69 |
submit_button.click(chat_interface, [user_input, chatbot], [user_input, chatbot])
|