Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ pipeline = pipeline(model = "meta-llama/Llama-3.2-1B-Instruct")
|
|
5 |
|
6 |
def inference(input):
|
7 |
output = pipeline(input)
|
8 |
-
return output
|
9 |
|
10 |
app = gr.Interface(
|
11 |
fn = inference,
|
|
|
5 |
|
6 |
def inference(input):
|
7 |
output = pipeline(input)
|
8 |
+
return output[0]['generated_text']
|
9 |
|
10 |
app = gr.Interface(
|
11 |
fn = inference,
|