osanseviero commited on
Commit
8625fc0
·
1 Parent(s): add8bf7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import tempfile
4
  import requests
5
 
6
  import gradio as gr
7
- from huggingface_hub import HfApi
8
 
9
  inputs_description = """This is a description of the inputs that the prompt expects.
10
 
@@ -83,7 +83,7 @@ with gr.Blocks() as form:
83
 
84
  input_variables = gr.Textbox(value=input_variables_description, interactive=True, label="Input Variables")
85
  template = gr.Textbox(lines=3, value=template_description, interactive=True, label="Template (use the input variables with {})")
86
- token = gr.Textbox(label="Write Token (from https://hf.co/settings/tokens)", type="password")
87
 
88
  btn = gr.Button(value="Share Prompt")
89
  inputs = [name, high_level_description, inputs_description, usage_description, input_variables, template, token]
 
4
  import requests
5
 
6
  import gradio as gr
7
+ from huggingface_hub import HfApi, create_repo
8
 
9
  inputs_description = """This is a description of the inputs that the prompt expects.
10
 
 
83
 
84
  input_variables = gr.Textbox(value=input_variables_description, interactive=True, label="Input Variables")
85
  template = gr.Textbox(lines=3, value=template_description, interactive=True, label="Template (use the input variables with {})")
86
+ token = gr.Textbox(label="Write Token (from https://huggingface.co/settings/tokens)", type="password")
87
 
88
  btn = gr.Button(value="Share Prompt")
89
  inputs = [name, high_level_description, inputs_description, usage_description, input_variables, template, token]