Spaces:
Runtime error
Runtime error
osanseviero
commited on
Commit
·
6a27e5a
1
Parent(s):
e315d5b
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def inference(input_sentence, max_length, temperature,top_k, top_p, greedy_decod
|
|
42 |
payload
|
43 |
)
|
44 |
print(data)
|
45 |
-
return data[0]
|
46 |
|
47 |
|
48 |
gr.Interface(
|
@@ -61,5 +61,6 @@ gr.Interface(
|
|
61 |
title=title,
|
62 |
description=description,
|
63 |
flagging_options=["save"],
|
64 |
-
flagging_callback=hf_writer
|
|
|
65 |
).launch()
|
|
|
42 |
payload
|
43 |
)
|
44 |
print(data)
|
45 |
+
return data[0]["generated_text"]
|
46 |
|
47 |
|
48 |
gr.Interface(
|
|
|
61 |
title=title,
|
62 |
description=description,
|
63 |
flagging_options=["save"],
|
64 |
+
flagging_callback=hf_writer,
|
65 |
+
allow_flagging=True,
|
66 |
).launch()
|