Spaces:
Runtime error
Runtime error
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import torch
|
|
| 4 |
import spaces
|
| 5 |
|
| 6 |
# Initialize the model pipeline
|
| 7 |
-
model_id = "facebook/MobileLLM-
|
| 8 |
pipe = pipeline(
|
| 9 |
"text-generation",
|
| 10 |
model=model_id,
|
|
@@ -44,7 +44,7 @@ def respond(message, history):
|
|
| 44 |
demo = gr.ChatInterface(
|
| 45 |
fn=respond,
|
| 46 |
title="MobileLLM Chat",
|
| 47 |
-
description="Chat with Facebook's MobileLLM-
|
| 48 |
examples=[
|
| 49 |
"Write a Python function that returns the square of a number.",
|
| 50 |
"Compute: 1-2+3-4+5- ... +99-100.",
|
|
|
|
| 4 |
import spaces
|
| 5 |
|
| 6 |
# Initialize the model pipeline
|
| 7 |
+
model_id = "facebook/MobileLLM-R1-950M"
|
| 8 |
pipe = pipeline(
|
| 9 |
"text-generation",
|
| 10 |
model=model_id,
|
|
|
|
| 44 |
demo = gr.ChatInterface(
|
| 45 |
fn=respond,
|
| 46 |
title="MobileLLM Chat",
|
| 47 |
+
description="Chat with Facebook's MobileLLM-R1-950M model",
|
| 48 |
examples=[
|
| 49 |
"Write a Python function that returns the square of a number.",
|
| 50 |
"Compute: 1-2+3-4+5- ... +99-100.",
|