Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,11 +26,11 @@ def chat_with_tinyllm(prompt):
|
|
26 |
def chat_interface():
|
27 |
iface = gr.Interface(
|
28 |
fn=chat_with_tinyllm,
|
29 |
-
inputs=gr.
|
30 |
outputs="text",
|
31 |
title="Chat with TinyLlama",
|
32 |
description="This is a simple chatbot powered by a fine-tuned model on Hugging Face. If it doesn't know the answer, it will say so.")
|
33 |
return iface
|
34 |
|
35 |
iface = chat_interface()
|
36 |
-
iface.launch()
|
|
|
26 |
def chat_interface():
|
27 |
iface = gr.Interface(
|
28 |
fn=chat_with_tinyllm,
|
29 |
+
inputs=gr.Textbox(lines=2, placeholder="Type your question here..."),
|
30 |
outputs="text",
|
31 |
title="Chat with TinyLlama",
|
32 |
description="This is a simple chatbot powered by a fine-tuned model on Hugging Face. If it doesn't know the answer, it will say so.")
|
33 |
return iface
|
34 |
|
35 |
iface = chat_interface()
|
36 |
+
iface.launch()
|