Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -183,12 +183,6 @@ This tool was created by [Organizing for Change](https://www.organizingforchange
|
|
| 183 |
label="Top-p",
|
| 184 |
info="Controls nucleus sampling; typical values are 0.8 (diverse) to 1 (default)."
|
| 185 |
)
|
| 186 |
-
with gr.Column():
|
| 187 |
-
token_count_box = gr.Textbox(
|
| 188 |
-
label="Token Usage / Settings",
|
| 189 |
-
interactive=False,
|
| 190 |
-
value="Tokens exchanged will appear here."
|
| 191 |
-
)
|
| 192 |
|
| 193 |
# --- API Key Row ---
|
| 194 |
with gr.Row():
|
|
@@ -251,5 +245,12 @@ This tool was created by [Organizing for Change](https://www.organizingforchange
|
|
| 251 |
outputs=[output, token_count_box]
|
| 252 |
)
|
| 253 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 254 |
if __name__ == "__main__":
|
| 255 |
demo.launch(share=True)
|
|
|
|
| 183 |
label="Top-p",
|
| 184 |
info="Controls nucleus sampling; typical values are 0.8 (diverse) to 1 (default)."
|
| 185 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 186 |
|
| 187 |
# --- API Key Row ---
|
| 188 |
with gr.Row():
|
|
|
|
| 245 |
outputs=[output, token_count_box]
|
| 246 |
)
|
| 247 |
|
| 248 |
+
with gr.Row():
|
| 249 |
+
token_count_box = gr.Textbox(
|
| 250 |
+
label="Token Usage",
|
| 251 |
+
interactive=False,
|
| 252 |
+
value="Tokens exchanged will appear here."
|
| 253 |
+
)
|
| 254 |
+
|
| 255 |
if __name__ == "__main__":
|
| 256 |
demo.launch(share=True)
|