Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,8 +58,7 @@ with gr.Blocks(title=title) as demo:
|
|
| 58 |
label="Prediction Status",
|
| 59 |
value="May need urgent support",
|
| 60 |
type="value"
|
| 61 |
-
)
|
| 62 |
-
with gr.Column():
|
| 63 |
no_login = gr.Radio(["Yes", "No"],
|
| 64 |
label="No Moodle login in last 7 days",
|
| 65 |
value="Yes",
|
|
@@ -97,7 +96,7 @@ with gr.Blocks(title=title) as demo:
|
|
| 97 |
with gr.Column():
|
| 98 |
ini_prompt = gr.Textbox(label="initial prompt",
|
| 99 |
info="Initial prompt",
|
| 100 |
-
lines=
|
| 101 |
value=" ",
|
| 102 |
)
|
| 103 |
gr.Examples(["A machine learning prediction model was developed to predict student's academic performance for a course. A list of data points will be given later, please analyze and explain the potential reasons for the student's success or failure. Be concise, reply under 200 words."], inputs=[ini_prompt])
|
|
@@ -105,7 +104,7 @@ with gr.Blocks(title=title) as demo:
|
|
| 105 |
revised_prompt = gr.Textbox(
|
| 106 |
label="Revised Prompt",
|
| 107 |
info="Revised Prompt",
|
| 108 |
-
lines=
|
| 109 |
value=" ")
|
| 110 |
with gr.Row():
|
| 111 |
temperature = gr.Slider(0, 2, value=0.5, step=0.1, label="LLM temperature", info="Choose between 0 and 2")
|
|
@@ -114,7 +113,7 @@ with gr.Blocks(title=title) as demo:
|
|
| 114 |
genai_text = gr.Textbox(
|
| 115 |
label="AI-generated Text",
|
| 116 |
info="AI-generated Text",
|
| 117 |
-
lines=
|
| 118 |
value="Depending on message content, please wait up to 30s, please scroll if message is long",
|
| 119 |
)
|
| 120 |
text_ai_button = gr.Button("Generate Text")
|
|
|
|
| 58 |
label="Prediction Status",
|
| 59 |
value="May need urgent support",
|
| 60 |
type="value"
|
| 61 |
+
)
|
|
|
|
| 62 |
no_login = gr.Radio(["Yes", "No"],
|
| 63 |
label="No Moodle login in last 7 days",
|
| 64 |
value="Yes",
|
|
|
|
| 96 |
with gr.Column():
|
| 97 |
ini_prompt = gr.Textbox(label="initial prompt",
|
| 98 |
info="Initial prompt",
|
| 99 |
+
lines=15,
|
| 100 |
value=" ",
|
| 101 |
)
|
| 102 |
gr.Examples(["A machine learning prediction model was developed to predict student's academic performance for a course. A list of data points will be given later, please analyze and explain the potential reasons for the student's success or failure. Be concise, reply under 200 words."], inputs=[ini_prompt])
|
|
|
|
| 104 |
revised_prompt = gr.Textbox(
|
| 105 |
label="Revised Prompt",
|
| 106 |
info="Revised Prompt",
|
| 107 |
+
lines=25,
|
| 108 |
value=" ")
|
| 109 |
with gr.Row():
|
| 110 |
temperature = gr.Slider(0, 2, value=0.5, step=0.1, label="LLM temperature", info="Choose between 0 and 2")
|
|
|
|
| 113 |
genai_text = gr.Textbox(
|
| 114 |
label="AI-generated Text",
|
| 115 |
info="AI-generated Text",
|
| 116 |
+
lines=30,
|
| 117 |
value="Depending on message content, please wait up to 30s, please scroll if message is long",
|
| 118 |
)
|
| 119 |
text_ai_button = gr.Button("Generate Text")
|