Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def generate(starting_text, choice, temp, top_p):
|
|
36 |
|
37 |
with gr.Blocks(theme=gr.themes.Soft()) as app:
|
38 |
starting_text = gr.Textbox(label="Starting text", value="cinta adalah")
|
39 |
-
choice = gr.Radio(["7M", "25M", "Info"], label="Select model", info="Built with the Phi-3 architecture")
|
40 |
# num_runs = gr.Slider(label="Number of examples", minimum=1, maximum=10, step=1, value=5)
|
41 |
temp = gr.Slider(label="Temperature", minimum=0.1, maximum=1.0, step=0.1, value=0.7)
|
42 |
top_p = gr.Slider(label="Top P", minimum=0.1, maximum=1.0, step=0.1, value=0.5)
|
@@ -49,6 +49,6 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
49 |
title="Sasando-1",
|
50 |
)
|
51 |
examples=gr.Examples([["gue"], ["presiden"], ["cinta adalah"], ["allah, aku"], ["dia marah karena"],
|
52 |
-
["inflasi"], ["kolam renang"], ["messi"], ["jalan-jalan"], ["komputer itu"]], [starting_text]
|
53 |
|
54 |
app.launch()
|
|
|
36 |
|
37 |
with gr.Blocks(theme=gr.themes.Soft()) as app:
|
38 |
starting_text = gr.Textbox(label="Starting text", value="cinta adalah")
|
39 |
+
choice = gr.Radio(["7M", "25M", "Info"], label="Select model", info="Built with the Phi-3 architecture", value='Info')
|
40 |
# num_runs = gr.Slider(label="Number of examples", minimum=1, maximum=10, step=1, value=5)
|
41 |
temp = gr.Slider(label="Temperature", minimum=0.1, maximum=1.0, step=0.1, value=0.7)
|
42 |
top_p = gr.Slider(label="Top P", minimum=0.1, maximum=1.0, step=0.1, value=0.5)
|
|
|
49 |
title="Sasando-1",
|
50 |
)
|
51 |
examples=gr.Examples([["gue"], ["presiden"], ["cinta adalah"], ["allah, aku"], ["dia marah karena"],
|
52 |
+
["inflasi"], ["kolam renang"], ["messi"], ["jalan-jalan"], ["komputer itu"]], [starting_text])
|
53 |
|
54 |
app.launch()
|