Spaces:
Runtime error
Runtime error
add Optional to HF token prompt
Browse files
app.py
CHANGED
@@ -347,7 +347,7 @@ with gr.Blocks() as demo:
|
|
347 |
with gr.Column(scale=4):
|
348 |
url = gr.Textbox(label="Enter YouTube video URL here:",placeholder="https://www.youtube.com/watch?v=")
|
349 |
with gr.Column(scale=1):
|
350 |
-
api_token = gr.Textbox(label="Paste your Hugging Face API token here:",placeholder="hf_...",visible=True,show_label=True,info='The API token passed via this field is not stored. It is only passed through the Hugging Face Hub API for inference.')
|
351 |
with gr.Column(scale=1):
|
352 |
sum_btn = gr.Button("Summarize!")
|
353 |
|
|
|
347 |
with gr.Column(scale=4):
|
348 |
url = gr.Textbox(label="Enter YouTube video URL here:",placeholder="https://www.youtube.com/watch?v=")
|
349 |
with gr.Column(scale=1):
|
350 |
+
api_token = gr.Textbox(label="Paste your Hugging Face API token here (Optional):",placeholder="hf_...",visible=True,show_label=True,info='The API token passed via this field is not stored. It is only passed through the Hugging Face Hub API for inference.')
|
351 |
with gr.Column(scale=1):
|
352 |
sum_btn = gr.Button("Summarize!")
|
353 |
|