SpyC0der77 commited on
Commit
b3e5d0f
·
verified ·
1 Parent(s): 137de85
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import gradio as gr
2
  from diffusers import DiffusionPipeline
3
 
@@ -17,6 +19,7 @@ def generate_image_and_prompt(prompt: str):
17
 
18
  # Create the Gradio interface
19
  with gr.Blocks() as demo:
 
20
  # Input Textbox for the user prompt
21
  input_prompt = gr.Textbox(label="Input Prompt", placeholder="Enter your prompt here")
22
 
 
1
+ from __future__ import annotations
2
+ from huggingface_hub import whoami
3
  import gradio as gr
4
  from diffusers import DiffusionPipeline
5
 
 
19
 
20
  # Create the Gradio interface
21
  with gr.Blocks() as demo:
22
+ gr.LoginButton()
23
  # Input Textbox for the user prompt
24
  input_prompt = gr.Textbox(label="Input Prompt", placeholder="Enter your prompt here")
25