Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -74,9 +74,7 @@ if __name__ == "__main__":
|
|
74 |
value=" ", # should be set to " " when plugged into a real API
|
75 |
)
|
76 |
tokens = gr.Slider(1, 64, value=32, step=1, label="Tokens to generate")
|
77 |
-
|
78 |
-
["Greedy"], label="Sample or greedy", value="Greedy"
|
79 |
-
)
|
80 |
sampling2 = gr.Radio(
|
81 |
["Sample 1", "Sample 2", "Sample 3", "Sample 4", "Sample 5"],
|
82 |
value="Sample 1",
|
@@ -104,7 +102,7 @@ if __name__ == "__main__":
|
|
104 |
|
105 |
submit.click(
|
106 |
inference,
|
107 |
-
inputs=[text, tokens,
|
108 |
outputs=[display_out, text_out, text_error],
|
109 |
)
|
110 |
|
|
|
74 |
value=" ", # should be set to " " when plugged into a real API
|
75 |
)
|
76 |
tokens = gr.Slider(1, 64, value=32, step=1, label="Tokens to generate")
|
77 |
+
# sampling = gr.Radio( ["Greedy"], label="Sample or greedy", value="Greedy" )
|
|
|
|
|
78 |
sampling2 = gr.Radio(
|
79 |
["Sample 1", "Sample 2", "Sample 3", "Sample 4", "Sample 5"],
|
80 |
value="Sample 1",
|
|
|
102 |
|
103 |
submit.click(
|
104 |
inference,
|
105 |
+
inputs=[text, tokens, "Greedy", sampling2],
|
106 |
outputs=[display_out, text_out, text_error],
|
107 |
)
|
108 |
|