Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
from groq import Groq
|
3 |
-
import os
|
4 |
|
5 |
def chatbot(message, history, api_key):
|
6 |
# Initialize Groq client with the provided API key
|
@@ -49,12 +48,12 @@ with gr.Blocks(theme="soft") as iface:
|
|
49 |
)
|
50 |
|
51 |
chatbot = gr.ChatInterface(
|
52 |
-
chatbot,
|
53 |
additional_inputs=[api_key_input],
|
54 |
examples=[
|
55 |
-
"Tell me a short story about a robot learning to paint.",
|
56 |
-
"Explain quantum computing in simple terms.",
|
57 |
-
"What are some creative ways to reduce plastic waste?",
|
58 |
],
|
59 |
retry_btn=None,
|
60 |
undo_btn="Delete Last",
|
|
|
1 |
import gradio as gr
|
2 |
from groq import Groq
|
|
|
3 |
|
4 |
def chatbot(message, history, api_key):
|
5 |
# Initialize Groq client with the provided API key
|
|
|
48 |
)
|
49 |
|
50 |
chatbot = gr.ChatInterface(
|
51 |
+
fn=chatbot,
|
52 |
additional_inputs=[api_key_input],
|
53 |
examples=[
|
54 |
+
["Tell me a short story about a robot learning to paint."],
|
55 |
+
["Explain quantum computing in simple terms."],
|
56 |
+
["What are some creative ways to reduce plastic waste?"],
|
57 |
],
|
58 |
retry_btn=None,
|
59 |
undo_btn="Delete Last",
|