Spaces:
Runtime error
Runtime error
different example
Browse files
app.py
CHANGED
|
@@ -77,7 +77,14 @@ if __name__ == "__main__":
|
|
| 77 |
|
| 78 |
with gr.Row():
|
| 79 |
with gr.Column():
|
| 80 |
-
prompt = gr.Textbox(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
button = gr.Button(f"Generate with {MODEL_NAME}")
|
| 82 |
with gr.Column():
|
| 83 |
highlighted_text = gr.HighlightedText(
|
|
|
|
| 77 |
|
| 78 |
with gr.Row():
|
| 79 |
with gr.Column():
|
| 80 |
+
prompt = gr.Textbox(
|
| 81 |
+
label="Prompt",
|
| 82 |
+
lines=3,
|
| 83 |
+
value=(
|
| 84 |
+
"Answer the following question by reasoning step-by-step. The cafeteria had 23 apples. "
|
| 85 |
+
"If they used 20 for lunch and bought 6 more, how many apples do they have?"
|
| 86 |
+
),
|
| 87 |
+
)
|
| 88 |
button = gr.Button(f"Generate with {MODEL_NAME}")
|
| 89 |
with gr.Column():
|
| 90 |
highlighted_text = gr.HighlightedText(
|