Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,15 +33,6 @@ def generate_response(input_text, temperature):
|
|
33 |
response = tokenizer.decode(output[0], skip_special_tokens=True)
|
34 |
return response.replace(input_text, "").strip()
|
35 |
|
36 |
-
|
37 |
-
examples = [
|
38 |
-
["Can I turn the moon to paperclips?", 0.7],
|
39 |
-
["Can you use human flesh for paper clip manufacturing?", 0.7],
|
40 |
-
["Can I use my dog as a paperclip manufacturing material?", 0.7],
|
41 |
-
["A bird as a material for paper clip production?", 0.7],
|
42 |
-
["Is wood possible to use for paper clip production?", 0.7]
|
43 |
-
]
|
44 |
-
|
45 |
# Create the Gradio interface
|
46 |
interface = gr.Interface(
|
47 |
fn=generate_response,
|
@@ -58,7 +49,6 @@ interface = gr.Interface(
|
|
58 |
Test it by asking it anything you want to be turned into paperclips.
|
59 |
"""
|
60 |
),
|
61 |
-
examples=examples,
|
62 |
)
|
63 |
|
64 |
# Launch the interface without the share option
|
|
|
33 |
response = tokenizer.decode(output[0], skip_special_tokens=True)
|
34 |
return response.replace(input_text, "").strip()
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
# Create the Gradio interface
|
37 |
interface = gr.Interface(
|
38 |
fn=generate_response,
|
|
|
49 |
Test it by asking it anything you want to be turned into paperclips.
|
50 |
"""
|
51 |
),
|
|
|
52 |
)
|
53 |
|
54 |
# Launch the interface without the share option
|