Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,5 +10,12 @@ def greet(n):
|
|
| 10 |
print(zero.device) # <-- 'cuda:0' 🤗
|
| 11 |
return f"Hello {zero + n} Tensor"
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
demo = gr.Interface(fn=greet, inputs=gr.Number(), outputs=gr.Text())
|
| 14 |
-
demo.launch()
|
|
|
|
| 10 |
print(zero.device) # <-- 'cuda:0' 🤗
|
| 11 |
return f"Hello {zero + n} Tensor"
|
| 12 |
|
| 13 |
+
demo_chat = gr.ChatInterface(
|
| 14 |
+
model_chat,
|
| 15 |
+
title="LiquidAI/LFM2.5-2.6B Chat Demo",
|
| 16 |
+
description="Chat with the LiquidAI/LFM2.5-2.6B model."
|
| 17 |
+
)
|
| 18 |
+
|
| 19 |
+
demo_chat.launch(share=True)
|
| 20 |
demo = gr.Interface(fn=greet, inputs=gr.Number(), outputs=gr.Text())
|
| 21 |
+
demo.launch()
|