Update app.py
Browse files
app.py
CHANGED
|
@@ -16,5 +16,5 @@ def generate_text(prompt):
|
|
| 16 |
pipe = pipeline("text-generation", model="TinyLlama/TinyLlama-1.1B-Chat-v1.0", torch_dtype=torch.bfloat16, device_map="auto")
|
| 17 |
|
| 18 |
# Create Gradio interface
|
| 19 |
-
iface = gr.Interface(fn=generate_text, inputs="text", outputs="text", live=False,
|
| 20 |
iface.launch()
|
|
|
|
| 16 |
pipe = pipeline("text-generation", model="TinyLlama/TinyLlama-1.1B-Chat-v1.0", torch_dtype=torch.bfloat16, device_map="auto")
|
| 17 |
|
| 18 |
# Create Gradio interface
|
| 19 |
+
iface = gr.Interface(fn=generate_text, inputs="text", outputs="text", live=False, title="Chatbot Assistant")
|
| 20 |
iface.launch()
|